|
34 | 34 |
|
35 | 35 | public class Jedis implements ServerCommands, DatabaseCommands, JedisCommands, JedisBinaryCommands, |
36 | 36 | ControlCommands, ControlBinaryCommands, ClusterCommands, ModuleCommands, GenericControlCommands, |
37 | | - SentinelCommands, Closeable { |
| 37 | + SentinelCommands, CommandCommands, Closeable { |
38 | 38 |
|
39 | 39 | protected final Connection connection; |
40 | 40 | private final CommandObjects commandObjects = new CommandObjects(); |
@@ -8223,48 +8223,56 @@ public long bitop(final BitOP op, final String destKey, final String... srcKeys) |
8223 | 8223 | return connection.executeCommand(commandObjects.bitop(op, destKey, srcKeys)); |
8224 | 8224 | } |
8225 | 8225 |
|
| 8226 | + @Override |
8226 | 8227 | public long commandCount() { |
8227 | 8228 | checkIsInMultiOrPipeline(); |
8228 | 8229 | connection.sendCommand(COMMAND, COUNT); |
8229 | 8230 | return connection.getIntegerReply(); |
8230 | 8231 | } |
8231 | 8232 |
|
| 8233 | + @Override |
8232 | 8234 | public Map<String, CommandDocument> commandDocs(String... commands) { |
8233 | 8235 | checkIsInMultiOrPipeline(); |
8234 | 8236 | connection.sendCommand(COMMAND, joinParameters(DOCS.name(), commands)); |
8235 | 8237 | return BuilderFactory.COMMAND_DOCS_RESPONSE.build(connection.getOne()); |
8236 | 8238 | } |
8237 | 8239 |
|
| 8240 | + @Override |
8238 | 8241 | public List<String> commandGetKeys(String... command) { |
8239 | 8242 | checkIsInMultiOrPipeline(); |
8240 | 8243 | connection.sendCommand(COMMAND, joinParameters(GETKEYS.name(), command)); |
8241 | 8244 | return BuilderFactory.STRING_LIST.build(connection.getOne()); |
8242 | 8245 | } |
8243 | 8246 |
|
| 8247 | + @Override |
8244 | 8248 | public List<KeyValue<String, List<String>>> commandGetKeysAndFlags(String... command) { |
8245 | 8249 | checkIsInMultiOrPipeline(); |
8246 | 8250 | connection.sendCommand(COMMAND, joinParameters(GETKEYSANDFLAGS.name(), command)); |
8247 | 8251 | return BuilderFactory.KEYED_STRING_LIST_LIST.build(connection.getOne()); |
8248 | 8252 | } |
8249 | 8253 |
|
| 8254 | + @Override |
8250 | 8255 | public Map<String, CommandInfo> commandInfo(String... commands) { |
8251 | 8256 | checkIsInMultiOrPipeline(); |
8252 | 8257 | connection.sendCommand(COMMAND, joinParameters(Keyword.INFO.name(), commands)); |
8253 | 8258 | return CommandInfo.COMMAND_INFO_RESPONSE.build(connection.getOne()); |
8254 | 8259 | } |
8255 | 8260 |
|
| 8261 | + @Override |
8256 | 8262 | public Map<String, CommandInfo> command() { |
8257 | 8263 | checkIsInMultiOrPipeline(); |
8258 | 8264 | connection.sendCommand(COMMAND); |
8259 | 8265 | return CommandInfo.COMMAND_INFO_RESPONSE.build(connection.getOne()); |
8260 | 8266 | } |
8261 | 8267 |
|
| 8268 | + @Override |
8262 | 8269 | public List<String> commandList() { |
8263 | 8270 | checkIsInMultiOrPipeline(); |
8264 | 8271 | connection.sendCommand(COMMAND, LIST); |
8265 | 8272 | return BuilderFactory.STRING_LIST.build(connection.getOne()); |
8266 | 8273 | } |
8267 | 8274 |
|
| 8275 | + @Override |
8268 | 8276 | public List<String> commandListFilterBy(CommandListFilterByParams filterByParams) { |
8269 | 8277 | checkIsInMultiOrPipeline(); |
8270 | 8278 | CommandArguments args = new CommandArguments(COMMAND).add(LIST).addParams(filterByParams); |
|
0 commit comments