pub enum SetExpiry {
EX(usize),
PX(usize),
EXAT(usize),
PXAT(usize),
KEEPTTL,
}
Expand description
Helper enum that is used to define expiry time for SET command
Variants§
EX(usize)
EX seconds – Set the specified expire time, in seconds.
PX(usize)
PX milliseconds – Set the specified expire time, in milliseconds.
EXAT(usize)
EXAT timestamp-seconds – Set the specified Unix time at which the key will expire, in seconds.
PXAT(usize)
PXAT timestamp-milliseconds – Set the specified Unix time at which the key will expire, in milliseconds.
KEEPTTL
KEEPTTL – Retain the time to live associated with the key.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SetExpiry
impl RefUnwindSafe for SetExpiry
impl Send for SetExpiry
impl Sync for SetExpiry
impl Unpin for SetExpiry
impl UnwindSafe for SetExpiry
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)