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
-
Method Summary
Modifier and TypeMethodDescriptionch()
Only update elements that already exist.boolean
Only update elements that already exist.static RedisZSetCommands.ZAddArgs
empty()
boolean
gt()
Only update existing elements if the new score is greater than the current score.int
hashCode()
static RedisZSetCommands.ZAddArgs
ifExists()
static RedisZSetCommands.ZAddArgs
boolean
isEmpty()
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.ZAddArgs
without any flags set.
-
ifNotExists
- Returns:
- new instance of
RedisZSetCommands.ZAddArgs
withoutRedisZSetCommands.ZAddArgs.Flag.NX
set.
-
ifExists
- Returns:
- new instance of
RedisZSetCommands.ZAddArgs
withoutRedisZSetCommands.ZAddArgs.Flag.NX
set.
-
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()
-