pub enum Expiry {
EX(usize),
PX(usize),
EXAT(usize),
PXAT(usize),
PERSIST,
}
Expand description
Helper enum that is used to define expiry time
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.
PERSIST
PERSIST – Remove the time to live associated with the key.
Auto Trait Implementations§
impl Freeze for Expiry
impl RefUnwindSafe for Expiry
impl Send for Expiry
impl Sync for Expiry
impl Unpin for Expiry
impl UnwindSafe for Expiry
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