RedisKeyLifetime
public enum RedisKeyLifetime : Hashable
The lifetime of a RedisKey
as determined by ttl
or pttl
.
-
The key does not exist.
Declaration
Swift
case keyDoesNotExist
-
The key exists but has no expiry associated with it.
Declaration
Swift
case unlimited
-
The key exists for the given lifetime.
Declaration
Swift
case limited(Lifetime)
-
Declaration
Swift
public enum Lifetime : Comparable, Hashable
-
The remaining time-to-live for the key, or
nil
if the key does not exist or will not expire.Declaration
Swift
public var timeAmount: TimeAmount? { get }