Expiration
in package
Record expiration, also known as time-to-live (TTL).
Table of Contents
Methods
- DontUpdate() : Expiration
- Do not change the record's expiry time when updating the record; requires Aerospike server version 3.10.1 or later.
- NamespaceDefault() : Expiration
- Set the record's expiry time using the default time-to-live (TTL) value for the namespace
- Never() : Expiration
- 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.
- Seconds() : Expiration
- Set the record to expire X seconds from now
Methods
DontUpdate()
Do not change the record's expiry time when updating the record; requires Aerospike server version 3.10.1 or later.
public
static DontUpdate() : Expiration
Return values
ExpirationNamespaceDefault()
Set the record's expiry time using the default time-to-live (TTL) value for the namespace
public
static NamespaceDefault() : Expiration
Return values
ExpirationNever()
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.
public
static Never() : Expiration
Return values
ExpirationSeconds()
Set the record to expire X seconds from now
public
static Seconds(int $seconds) : Expiration
Parameters
- $seconds : int