Skip to content
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

Improve jedis.get doc #3150

Merged
merged 2 commits into from
Sep 27, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions src/main/java/redis/clients/jedis/Jedis.java
Original file line number Diff line number Diff line change
Expand Up @@ -387,8 +387,11 @@ public String set(final byte[] key, final byte[] value) {
* GB).
* @param key
* @param value
* @param params
* @return OK
* @param params NX|XX, NX -- Only set the key if it does not already exist. XX -- Only set the
* key if it already exists. EX|PX, expire time units: EX = seconds; PX = milliseconds
* @return simple-string-reply {@code OK} if {@code SET} was executed correctly, or {@code null}
* if the {@code SET} operation was not performed because the user specified the NX or XX option
* but the condition was not met.
*/
@Override
public String set(final byte[] key, final byte[] value, final SetParams params) {
Expand Down Expand Up @@ -4884,7 +4887,9 @@ public String set(final String key, final String value) {
* @param value
* @param params NX|XX, NX -- Only set the key if it does not already exist. XX -- Only set the
* key if it already exists. EX|PX, expire time units: EX = seconds; PX = milliseconds
* @return OK
* @return simple-string-reply {@code OK} if {@code SET} was executed correctly, or {@code null}
* if the {@code SET} operation was not performed because the user specified the NX or XX option
* but the condition was not met.
*/
@Override
public String set(final String key, final String value, final SetParams params) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@ public interface StringCommands {
* @param key
* @param value
* @param params {@link SetParams}
* @return OK
* @return simple-string-reply {@code OK} if {@code SET} was executed correctly, or {@code null}
* if the {@code SET} operation was not performed because the user specified the NX or XX option
* but the condition was not met.
*/
String set(String key, String value, SetParams params);

Expand Down