RedisSetCommandCondition
public struct RedisSetCommandCondition : Hashable
A condition which must hold true in order for a key to be set.
-
No condition is required to be met in order to set the key’s value.
Declaration
Swift
public static let none: RedisSetCommandCondition
-
Only set the key if it already exists.
Redis documentation refers to this as the option “XX”.
Declaration
Swift
public static let keyExists: RedisSetCommandCondition
-
Only set the key if it does not already exist.
Redis documentation refers to this as the option “NX”.
Declaration
Swift
public static let keyDoesNotExist: RedisSetCommandCondition