Class ZAddArgs
java.lang.Object
io.quarkus.redis.datasource.sortedset.ZAddArgs
- All Implemented Interfaces:
RedisCommandExtraArguments
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionch()
Modify the return value from the number of new elements added, to the total number of elements changed (CH is an abbreviation of changed).gt()
Only update existing elements if the new score is greater than the current score.lt()
Only update existing elements if the new score is less than the current score.nx()
Only add new elements.void
toArgs()
xx()
Only update elements that already exist.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.quarkus.redis.datasource.RedisCommandExtraArguments
toArgs
-
Constructor Details
-
ZAddArgs
public ZAddArgs()
-
-
Method Details
-
nx
Only add new elements. Don't update already existing elements.- Returns:
- the current
ZAddArgs
-
xx
Only update elements that already exist. Don't add new elements.- Returns:
- the current
ZAddArgs
-
ch
Modify the return value from the number of new elements added, to the total number of elements changed (CH is an abbreviation of changed). Changed elements are new elements added and elements already existing for which the score was updated. So elements specified in the command line having the same score as they had in the past are not counted.- Returns:
- the current
ZAddArgs
-
lt
Only update existing elements if the new score is less than the current score. This flag doesn't prevent adding new elements.- Returns:
- the current
ZAddArgs
-
gt
Only update existing elements if the new score is greater than the current score. This flag doesn't prevent adding new elements.- Returns:
- the current
ZAddArgs
-
toArgs
- Specified by:
toArgs
in interfaceRedisCommandExtraArguments
- Returns:
- the list of arguments.
-
putFlag
-