public class ZIncrByParams extends java.lang.Object implements IParams
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.
Constructor and Description |
---|
ZIncrByParams() |
Modifier and Type | Method and Description |
---|---|
void |
addParams(CommandArguments args) |
ZIncrByParams |
nx()
Only set the key if it does not already exist.
|
ZIncrByParams |
xx()
Only set the key if it already exist.
|
static ZIncrByParams |
zIncrByParams() |
public static ZIncrByParams zIncrByParams()
public ZIncrByParams nx()
public ZIncrByParams xx()
public void addParams(CommandArguments args)
Copyright © 2023. All rights reserved.