Enum redis_driver::SetExpiration
source · [−]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
sourceimpl Default for SetExpiration
impl Default for SetExpiration
sourceimpl IntoArgs for SetExpiration
impl IntoArgs for SetExpiration
fn into_args(self, args: CommandArgs) -> CommandArgs
fn num_args(&self) -> usize
Auto Trait Implementations
impl RefUnwindSafe for SetExpiration
impl Send for SetExpiration
impl Sync for SetExpiration
impl Unpin for SetExpiration
impl UnwindSafe for SetExpiration
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more