-
Notifications
You must be signed in to change notification settings - Fork 0
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
Add GET/SET/INFO/PING commands #66
Add GET/SET/INFO/PING commands #66
Conversation
9927bd9
to
92cd1f0
Compare
* Add base command; add custom command --------- Signed-off-by: Andrew Carbonetto <[email protected]>
Signed-off-by: Andrew Carbonetto <[email protected]>
Signed-off-by: Andrew Carbonetto <[email protected]>
Signed-off-by: Andrew Carbonetto <[email protected]>
Signed-off-by: Andrew Carbonetto <[email protected]>
Signed-off-by: Andrew Carbonetto <[email protected]>
Signed-off-by: Andrew Carbonetto <[email protected]>
Signed-off-by: Andrew Carbonetto <[email protected]>
df8b07d
to
926d04e
Compare
* @see <a href="https://redis.io/commands/set/">redis.io</a> for details. | ||
* @param key - The key to store. | ||
* @param value - The value to store with the given key. | ||
* @return null |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit:
* @return null | |
* @return A CompletableFuture that can be used to wait for the command to complete. Set has no return value, so the CompletableFuture will return null. |
* @return string or null If value isn't set because of `onlyIfExists` or `onlyIfDoesNotExist` | ||
* conditions, return null. If `returnOldValue` is set, return the old value as a string. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Taking from the python docs:
* @return string or null If value isn't set because of `onlyIfExists` or `onlyIfDoesNotExist` | |
* conditions, return null. If `returnOldValue` is set, return the old value as a string. | |
* @return The old value as a string of `returnOldValue` is set. Otherwise, if the value isn't set because of `onlyIfExists` or `onlyIfDoesNotExist` conditions, return null. Otherwise, return "OK". |
/** | ||
* Converts options enum into a String[] to add to a {@link glide.api.models.Command} | ||
* | ||
* @return String[] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* @return String[] | |
* @return The sections held by this InfoOptions as an array of strings |
* Check for errors in the Response and return null Throws an error if an unexpected value is | ||
* returned | ||
* | ||
* @return null if the response is empty |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we use the @throws tag here?
* Check for errors in the Response and return null Throws an error if an unexpected value is | |
* returned | |
* | |
* @return null if the response is empty | |
* Check for errors in the Response and return null. | |
* | |
* @return null if the response is empty | |
* @throws RedisException if an unexpected (non-null) value is returned |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1
* @param arguments | ||
* @return |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit:
* @param arguments | |
* @return | |
* @param arguments The desired set options | |
* @return The passed in arguments as an array of strings |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
capitalize?
* Check for errors in the Response and return null Throws an error if an unexpected value is | ||
* returned | ||
* | ||
* @return null if the response is empty |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1
* @param arguments | ||
* @return |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
capitalize?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Leave here tests which required for coverage only, all rest you can move to IT
Please, add a PR description and examples, especially for set with options and info with options. |
No description provided.