Package redis.clients.jedis.resps
Class CommandInfo
java.lang.Object
redis.clients.jedis.resps.CommandInfo
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final longstatic final Builder<CommandInfo> private final longprivate final longprivate final long -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAn array of simple strings that are the ACL categories to which the command belongslonggetArity()Arity is the number of arguments a command expects.longThe position of the command's first key name argumentgetFlags()Command flagslongThe position of the command's last key name argument Commands that accept a single key have both first key and last key set to 1longgetStep()This value is the step, or increment, between the first key and last key values where the keys areAll the command's subcommands, if anygetTips()Helpful information about the command
-
Field Details
-
arity
private final long arity -
flags
-
firstKey
private final long firstKey -
lastKey
private final long lastKey -
step
private final long step -
aclCategories
-
tips
-
subcommands
-
COMMAND_INFO_BUILDER
-
-
Constructor Details
-
CommandInfo
-
-
Method Details
-
getArity
public long getArity()Arity is the number of arguments a command expects. It follows a simple pattern: A positive integer means a fixed number of arguments. A negative integer means a minimal number of arguments. Examples: GET's arity is 2 since the command only accepts one argument and always has the format GET _key_. MGET's arity is -2 since the command accepts at least one argument, but possibly multiple ones: MGET _key1_ [key2] [key3] .... -
getFlags
Command flags -
getFirstKey
public long getFirstKey()The position of the command's first key name argument -
getLastKey
public long getLastKey()The position of the command's last key name argument Commands that accept a single key have both first key and last key set to 1 -
getStep
public long getStep()This value is the step, or increment, between the first key and last key values where the keys are -
getAclCategories
An array of simple strings that are the ACL categories to which the command belongs -
getTips
Helpful information about the command -
getSubcommands
All the command's subcommands, if any
-