pub enum GetexOption {
EX(u64),
PX(u64),
EXAT(u64),
PXAT(u64),
PERSIST,
}Expand description
Options for the GETEX command
Variants§
EX(u64)
Set the expiration to seconds from now.
PX(u64)
Set the expiration to milliseconds from now.
EXAT(u64)
Set the expiration to a Unix timestamp.
PXAT(u64)
Set the expiration to a Unix timestamp in milliseconds.
PERSIST
Remove the expiration from the key.
Trait Implementations§
Source§impl Clone for GetexOption
impl Clone for GetexOption
Source§fn clone(&self) -> GetexOption
fn clone(&self) -> GetexOption
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for GetexOption
Source§impl Debug for GetexOption
impl Debug for GetexOption
impl Eq for GetexOption
Source§impl Hash for GetexOption
impl Hash for GetexOption
Source§impl Ord for GetexOption
impl Ord for GetexOption
Source§fn cmp(&self, other: &GetexOption) -> Ordering
fn cmp(&self, other: &GetexOption) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for GetexOption
impl PartialEq for GetexOption
Source§impl PartialOrd for GetexOption
impl PartialOrd for GetexOption
impl StructuralPartialEq for GetexOption
Auto Trait Implementations§
impl Freeze for GetexOption
impl RefUnwindSafe for GetexOption
impl Send for GetexOption
impl Sync for GetexOption
impl Unpin for GetexOption
impl UnsafeUnpin for GetexOption
impl UnwindSafe for GetexOption
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request