Enum aerospike::policy::Expiration
source · pub enum Expiration {
Seconds(u32),
NamespaceDefault,
Never,
DontUpdate,
}
Expand description
Record expiration, also known as time-to-live (TTL).
Variants§
Seconds(u32)
Set the record to expire X seconds from now
NamespaceDefault
Set the record’s expiry time using the default time-to-live (TTL) value for the namespace
Never
Set the record to never expire. Requires Aerospike 2 server version 2.7.2 or later or Aerospike 3 server version 3.1.4 or later. Do not use with older servers.
DontUpdate
Do not change the record’s expiry time when updating the record; requires Aerospike server version 3.10.1 or later.
Trait Implementations§
source§impl Clone for Expiration
impl Clone for Expiration
source§fn clone(&self) -> Expiration
fn clone(&self) -> Expiration
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for Expiration
impl Debug for Expiration
source§impl From<Expiration> for u32
impl From<Expiration> for u32
source§fn from(exp: Expiration) -> u32
fn from(exp: Expiration) -> u32
Converts to this type from the input type.
impl Copy for Expiration
Auto Trait Implementations§
impl RefUnwindSafe for Expiration
impl Send for Expiration
impl Sync for Expiration
impl Unpin for Expiration
impl UnwindSafe for Expiration
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