RedisSortedSetAddOption

public enum RedisSortedSetAddOption : String

The supported options for the zadd command with Redis SortedSet types.

See https://redis.io/commands/zadd#zadd-options-redis-302-or-greater

  • When adding elements, any that do not already exist in the SortedSet will be ignored and the score of the existing element will be updated.

    Declaration

    Swift

    case onlyUpdateExistingElements = "XX"
  • When adding elements, any that already exist in the SortedSet will be ignored and the score of the existing element will not be updated.

    Declaration

    Swift

    case onlyAddNewElements = "NX"