Skip to content
This repository was archived by the owner on Mar 9, 2026. It is now read-only.

Commit 814ae75

Browse files
authored
remove the NOSCORES part
1 parent b8d28ec commit 814ae75

1 file changed

Lines changed: 1 addition & 15 deletions

File tree

commands/scan.md

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -172,12 +172,10 @@ redis 127.0.0.1:6379> SCAN 0 TYPE zset
172172

173173
It is important to note that the **TYPE** filter is also applied after elements are retrieved from the database, so the option does not reduce the amount of work the server has to do to complete a full iteration, and for rare types you may receive no elements in many iterations.
174174

175-
## The NOSCORES/NOVALUES option
175+
## The NOVALUES option
176176

177177
When using `HSCAN`, you can use the `NOVALUES` option to make Redis return only the keys in the hash table without their corresponding values.
178178

179-
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.
180-
181179
```
182180
redis 127.0.0.1:6379> HSET myhash a 1 b 2
183181
OK
@@ -189,18 +187,6 @@ redis 127.0.0.1:6379> HSCAN myhash 0
189187
4) "2"
190188
redis 127.0.0.1:6379> HSCAN myhash 0 NOVALUES
191189
1) "0"
192-
2) 1) "a"
193-
2) "b"
194-
redis 127.0.0.1:6379> ZADD myzset 1 a 2 b
195-
(integer) 2
196-
redis 127.0.0.1:6379> ZSCAN myzset 0
197-
1) "0"
198-
2) 1) "a"
199-
2) "1"
200-
3) "b"
201-
4) "2"
202-
redis 127.0.0.1:6379> ZSCAN myzset 0 NOSCORES
203-
1) "0"
204190
2) 1) "a"
205191
2) "b"
206192
```

0 commit comments

Comments
 (0)