Enum aerospike::Expiration [−][src]
pub enum Expiration { Seconds(u32), NamespaceDefault, Never, DontUpdate, }
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
impl Debug for Expiration
[src]
impl Debug for Expiration
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for Expiration
[src]
impl Clone for Expiration
fn clone(&self) -> Expiration
[src]
fn clone(&self) -> Expiration
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Copy for Expiration
[src]
impl Copy for Expiration
impl From<Expiration> for u32
[src]
impl From<Expiration> for u32
fn from(exp: Expiration) -> u32
[src]
fn from(exp: Expiration) -> u32
Performs the conversion.
Auto Trait Implementations
impl Send for Expiration
impl Send for Expiration
impl Sync for Expiration
impl Sync for Expiration