Enum rustis::commands::SetExpiration
source · pub enum SetExpiration {
None,
Ex(u64),
Px(u64),
Exat(u64),
Pxat(u64),
}
Expand description
Expiration option for the set_with_options
command
Variants§
None
No expiration
Ex(u64)
Set the specified expire time, in seconds.
Px(u64)
Set the specified expire time, in milliseconds.
Exat(u64)
Set the specified Unix time at which the key will expire, in seconds.
Pxat(u64)
Set the specified Unix time at which the key will expire, in milliseconds.
Trait Implementations§
source§impl Default for SetExpiration
impl Default for SetExpiration
source§fn default() -> SetExpiration
fn default() -> SetExpiration
Returns the “default value” for a type. Read more
source§impl ToArgs for SetExpiration
impl ToArgs for SetExpiration
source§fn write_args(&self, args: &mut CommandArgs)
fn write_args(&self, args: &mut CommandArgs)
Write this Rust type as one ore multiple args into CommandArgs. Read more
Auto Trait Implementations§
impl Freeze for SetExpiration
impl RefUnwindSafe for SetExpiration
impl Send for SetExpiration
impl Sync for SetExpiration
impl Unpin for SetExpiration
impl UnwindSafe for SetExpiration
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