pub enum Expire {
Clear,
Keep,
At(u64),
}Expand description
What a write should do with the key’s deadline.
Variants§
Clear
Leave the key with no deadline. Plain SET, and GETEX PERSIST.
Keep
Leave whatever deadline was there. SET KEEPTTL, and plain GETEX.
At(u64)
Expire at this absolute unix millisecond. EX, PX, EXAT, PXAT.
Trait Implementations§
impl Copy for Expire
impl Eq for Expire
impl StructuralPartialEq for Expire
Auto Trait Implementations§
impl Freeze for Expire
impl RefUnwindSafe for Expire
impl Send for Expire
impl Sync for Expire
impl Unpin for Expire
impl UnsafeUnpin for Expire
impl UnwindSafe for Expire
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