Class ValkeyZSetCommands.ZAddArgs
java.lang.Object
io.valkey.springframework.data.valkey.connection.ValkeyZSetCommands.ZAddArgs
- Enclosing interface:
- ValkeyZSetCommands
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 ValkeyZSetCommands.ZAddArgsempty()booleangt()Only update existing elements if the new score is greater than the current score.inthashCode()static ValkeyZSetCommands.ZAddArgsifExists()static ValkeyZSetCommands.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
ValkeyZSetCommands.ZAddArgswithout any flags set.
-
ifNotExists
- Returns:
- new instance of
ValkeyZSetCommands.ZAddArgswithoutValkeyZSetCommands.ZAddArgs.Flag.NXset.
-
ifExists
- Returns:
- new instance of
ValkeyZSetCommands.ZAddArgswithoutValkeyZSetCommands.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()
-