Package redis.clients.jedis.params
Class ZIncrByParams
java.lang.Object
redis.clients.jedis.params.Params
redis.clients.jedis.params.ZIncrByParams
- All Implemented Interfaces:
IParams
Parameters for ZINCRBY commands. In fact, Redis doesn't have parameters for ZINCRBY. Instead
Redis has INCR parameter for ZADD.
When users call ZADD with INCR option, its restriction (only one member) and return type is same to ZINCRBY. Document page for ZADD also describes INCR option to act like ZINCRBY. So we decided to wrap "ZADD with INCR option" to ZINCRBY.
Works with Redis 3.0.2 and onwards.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddParams(CommandArguments args) nx()Only set the key if it does not already exist.xx()Only set the key if it already exist.static ZIncrByParams
-
Field Details
-
XX
- See Also:
-
NX
- See Also:
-
INCR
- See Also:
-
-
Constructor Details
-
ZIncrByParams
public ZIncrByParams()
-
-
Method Details