pub enum SetExpiry {
EX(u64),
PX(u64),
EXAT(u64),
PXAT(u64),
KEEPTTL,
}Expand description
Helper enum that is used to define expiry time for SET command
Variants§
EX(u64)
EX seconds – Set the specified expire time, in seconds.
PX(u64)
PX milliseconds – Set the specified expire time, in milliseconds.
EXAT(u64)
EXAT timestamp-seconds – Set the specified Unix time at which the key will expire, in seconds.
PXAT(u64)
PXAT timestamp-milliseconds – Set the specified Unix time at which the key will expire, in milliseconds.
KEEPTTL
KEEPTTL – Retain the time to live associated with the key.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SetExpiry
impl RefUnwindSafe for SetExpiry
impl Send for SetExpiry
impl Sync for SetExpiry
impl Unpin for SetExpiry
impl UnwindSafe for SetExpiry
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more