RedisZaddInsertBehavior

public enum RedisZaddInsertBehavior

The supported insert behavior for a zadd command with Redis SortedSet types.

zadd normally inserts all elements (.allElements) provided into the SortedSet, updating the score of any element that already exist in the set.

However, it supports two other insert behaviors:

  • .onlyNewElements will not update the score of any element already in the SortedSet
  • .onlyExistingElements will not insert any new element into the SortedSet

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