pub enum ExpireOption {
None,
Nx,
Xx,
Gt,
Lt,
}
Expand description
Options for the expire
command
Variants§
None
No option
Nx
Set expiry only when the key has no expiry
Xx
Set expiry only when the key has no expiry
Gt
Set expiry only when the new expiry is greater than current one
Lt
Set expiry only when the new expiry is less than current one
Trait Implementations§
Source§impl Default for ExpireOption
impl Default for ExpireOption
Source§impl IntoArgs for ExpireOption
impl IntoArgs for ExpireOption
fn into_args(self, args: CommandArgs) -> CommandArgs
fn num_args(&self) -> usize
Auto Trait Implementations§
impl Freeze for ExpireOption
impl RefUnwindSafe for ExpireOption
impl Send for ExpireOption
impl Sync for ExpireOption
impl Unpin for ExpireOption
impl UnwindSafe for ExpireOption
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