Enum aerospike::Expiration [] [src]

pub enum Expiration {
    Seconds(u32),
    NamespaceDefault,
    Never,
    DontUpdate,
}

Record expiration, also known as time-to-live (TTL).

Variants

Set the record to expire X seconds from now

Set the record's expiry time using the default time-to-live (TTL) value for the namespace

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.

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]

Formats the value using the given formatter.

impl Clone for Expiration
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for Expiration
[src]