Class RedisZSetCommands.ZAddArgs
java.lang.Object
org.springframework.data.redis.connection.RedisZSetCommands.ZAddArgs
- Enclosing interface:
- RedisZSetCommands
ZADD specific arguments. Looking of the
INCR flag? Use the ZINCRBY operation instead.- Since:
- 2.5
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionch()Only update elements that already exist.booleanOnly update elements that already exist.static RedisZSetCommands.ZAddArgsempty()booleangt()Only update existing elements if the new score is greater than the current score.inthashCode()static RedisZSetCommands.ZAddArgsifExists()static RedisZSetCommands.ZAddArgsbooleanisEmpty()lt()Only update existing elements if the new score is less than the current score.nx()Only update elements that already exist.xx()Don't update already existing elements.
-
Method Details
-
empty
- Returns:
- new instance of
RedisZSetCommands.ZAddArgswithout any flags set.
-
ifNotExists
- Returns:
- new instance of
RedisZSetCommands.ZAddArgswithoutRedisZSetCommands.ZAddArgs.Flag.NXset.
-
ifExists
- Returns:
- new instance of
RedisZSetCommands.ZAddArgswithoutRedisZSetCommands.ZAddArgs.Flag.NXset.
-
nx
Only update elements that already exist.- Returns:
- this.
-
xx
Don't update already existing elements.- Returns:
- this.
-
lt
Only update existing elements if the new score is less than the current score.- Returns:
- this.
-
gt
Only update existing elements if the new score is greater than the current score.- Returns:
- this.
-
ch
Only update elements that already exist.- Returns:
- this.
-
contains
Only update elements that already exist.- Returns:
- this.
-
isEmpty
public boolean isEmpty()- Returns:
- true if no flags set.
-
equals
-
hashCode
public int hashCode()
-