-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Add novalues option to HSCAN. #2612
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 novalues option to HSCAN. #2612
Conversation
👷 Deploy request for redis-doc pending review.Visit the deploys page to approve it
|
commands/scan.md
Outdated
|
|
||
| ## The NOSCORES/NOVALUES option | ||
|
|
||
| When using `HSCAN`, you can use `NOVALUES` option to make Redis return only the keys in the hash table, without their corresponding values. |
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.
I hope you don't mind a little bit of copy-editing.
| When using `HSCAN`, you can use `NOVALUES` option to make Redis return only the keys in the hash table, without their corresponding values. | |
| When using `HSCAN`, you can use the `NOVALUES` option to make Redis return only the keys in the hash table without their corresponding values. |
commands/scan.md
Outdated
|
|
||
| When using `HSCAN`, you can use `NOVALUES` option to make Redis return only the keys in the hash table, without their corresponding values. | ||
|
|
||
| Similarly, when using `ZSCAN`, you can use `NOSCORES` option to make Redis return only the members in the zset, without their corresponding scores. |
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.
| Similarly, when using `ZSCAN`, you can use `NOSCORES` option to make Redis return only the members in the zset, without their corresponding scores. | |
| Similarly, when using `ZSCAN`, you can use the `NOSCORES` option to make Redis return only the members in the sorted set without their corresponding scores. |
commands/scan.md
Outdated
| Similarly, when using `ZSCAN`, you can use `NOSCORES` option to make Redis return only the members in the zset, without their corresponding scores. | ||
|
|
||
| ``` | ||
| redis 127.0.0.1:6379> HMSET myhash a 1 b 2 |
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.
Since HMSET is deprecated, let's use HSET.
| redis 127.0.0.1:6379> HMSET myhash a 1 b 2 | |
| redis 127.0.0.1:6379> HSET myhash a 1 b 2 |
dwdougherty
left a comment
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.
LGTM
Doc of redis/redis#12765.