ExpTTL Method

Create expression that returns record expiration time (time to live) in integer seconds. This expression usually evaluates quickly because record meta data is cached in memory.

Definition

Namespace: Aerospike.Client
Assembly: AerospikeClient (in AerospikeClient.dll) Version: 7.0.1
C#
public static Exp TTL()

Return Value

Exp

Example

C#
// Record expires in less than 1 hour
Exp.LT(Exp.TTL(), Exp.Val(60 * 60))

See Also