Package io.lettuce.core.models.command
Class CommandDetailParser
- java.lang.Object
-
- io.lettuce.core.models.command.CommandDetailParser
-
public class CommandDetailParser extends Object
Parser for Redis COMMAND/COMMAND INFO output.- Since:
- 3.0
- Author:
- Mark Paluch, Mikhael Sokolov
-
-
Field Summary
Fields Modifier and Type Field Description protected static Map<String,AclCategory>
ACL_CATEGORY_MAPPING
static int
COMMAND_INFO_SIZE
Number of array elements for a specific command.protected static Map<String,CommandDetail.Flag>
FLAG_MAPPING
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static List<CommandDetail>
parse(List<?> commandOutput)
Parse the output of the Redis COMMAND/COMMAND INFO command and convert to a list ofCommandDetail
.
-
-
-
Field Detail
-
COMMAND_INFO_SIZE
public static final int COMMAND_INFO_SIZE
Number of array elements for a specific command.- See Also:
- Constant Field Values
-
FLAG_MAPPING
protected static final Map<String,CommandDetail.Flag> FLAG_MAPPING
-
ACL_CATEGORY_MAPPING
protected static final Map<String,AclCategory> ACL_CATEGORY_MAPPING
-
-
Method Detail
-
parse
public static List<CommandDetail> parse(List<?> commandOutput)
Parse the output of the Redis COMMAND/COMMAND INFO command and convert to a list ofCommandDetail
.- Parameters:
commandOutput
- the command output, must not benull
- Returns:
- RedisInstance
-
-