-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Support COMMAND [...] commands #2922
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
+473
−22
Merged
Changes from 12 commits
Commits
Show all changes
30 commits
Select commit
Hold shift + click to select a range
f05e044
Commands [..] commands
4be5a48
Update CommandInfo.java
Avital-Fine 3c7e7d6
Update KeyedFlags.java
Avital-Fine 9ea6e52
Update CommandDocs.java
Avital-Fine b31c554
indentation
67ef2ff
Merge branch 'master' into COMMAND
Avital-Fine b0123cf
Merge branch 'master' into COMMAND
Avital-Fine 0e800a0
fix function name
6d03e04
Merge remote-tracking branch 'upstream/COMMAND' into COMMAND
9621426
Merge branch 'master' into COMMAND
Avital-Fine 37bd8e5
Merge branch 'master' into COMMAND
Avital-Fine 25e1a21
Merge branch 'master' into COMMAND
Avital-Fine b05cd5c
Update src/main/java/redis/clients/jedis/Protocol.java
Avital-Fine 5fb4bf4
Update src/main/java/redis/clients/jedis/Jedis.java
Avital-Fine 06eace6
fix
62d7f71
add CommandListFilterByParams
d790655
Update src/main/java/redis/clients/jedis/BuilderFactory.java
Avital-Fine d44b4f7
resolve conflicts
11ba5fe
fix bug
19403d6
Update src/main/java/redis/clients/jedis/params/CommandListFilterByPa…
Avital-Fine 2ad21d6
Merge branch 'master' into COMMAND
Avital-Fine 4d10d8d
clean builders
ec24009
Update src/main/java/redis/clients/jedis/CommandObjects.java
Avital-Fine b2c03f1
Update src/main/java/redis/clients/jedis/UnifiedJedis.java
Avital-Fine e16e557
restore commands in Jedis.java
13768ea
format
sazzad16 1e4226a
implement commands in jedis
87e356a
test exception
0af1881
test exception
a750c34
test exception
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
73 changes: 73 additions & 0 deletions
73
src/main/java/redis/clients/jedis/commands/CommandCommands.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,73 @@ | ||
| package redis.clients.jedis.commands; | ||
|
|
||
| import redis.clients.jedis.resps.CommandDocs; | ||
| import redis.clients.jedis.resps.CommandInfo; | ||
| import redis.clients.jedis.resps.KeyedFlags; | ||
|
|
||
| import java.util.List; | ||
|
|
||
| public interface CommandCommands { | ||
|
|
||
| /** | ||
| * The number of total commands in this Redis server | ||
| * @return The number of total commands | ||
| */ | ||
| long commandCount(); | ||
|
|
||
| /** | ||
| * Return documentary information about commands. | ||
| * If not specifying commands, the reply includes all the server's commands. | ||
| * @param commands specify the names of one or more commands | ||
| * @return list of {@link CommandDocs} | ||
| */ | ||
|
|
||
| List<CommandDocs> commandDocs(String... commands); | ||
|
|
||
| /** | ||
| * Return list of keys from a full Redis command | ||
| * @param command | ||
| * @return list of keys | ||
| */ | ||
| List<String> commandGetKeys(String... command); | ||
|
|
||
| /** | ||
| * Return list of keys from a full Redis command and their usage flags | ||
| * @param command | ||
| * @return list of {@link KeyedFlags} | ||
| */ | ||
| List<KeyedFlags> commandGetKeysAndFlags(String... command); | ||
|
|
||
| /** | ||
| * Return details about multiple Redis commands | ||
| * @param commands | ||
| * @return list of {@link CommandInfo} | ||
| */ | ||
| List<CommandInfo> commandInfo(String... commands); | ||
|
|
||
| /** | ||
| * Return a list of the server's command names | ||
| * @return commands list | ||
| */ | ||
| List<String> commandList(); | ||
|
|
||
| /** | ||
| * Return a list of the server's command names filter by module's name | ||
| * @param moduleName | ||
| * @return commands list | ||
| */ | ||
| List<String> commandListFilterByModule(String moduleName); | ||
|
|
||
| /** | ||
| * Return a list of the server's command names filter by ACL category | ||
| * @param category | ||
| * @return commands list | ||
| */ | ||
| List<String> commandListFilterByAclcat(String category); | ||
|
|
||
| /** | ||
| * Return a list of the server's command names filter by glob-like pattern | ||
| * @param pattern | ||
| * @return commands list | ||
| */ | ||
| List<String> commandListFilterByPattern(String pattern); | ||
Avital-Fine marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.