You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-07-31 05:44:24 +03:00
Fixed zScanIterator
example (#1733)
The example for `zScanIterator` had the wrong values in the `for` loop.
This commit is contained in:
@ -180,7 +180,7 @@ This works with `HSCAN`, `SSCAN`, and `ZSCAN` too:
|
||||
```typescript
|
||||
for await (const { field, value } of client.hScanIterator('hash')) {}
|
||||
for await (const member of client.sScanIterator('set')) {}
|
||||
for await (const { score, member } of client.zScanIterator('sorted-set')) {}
|
||||
for await (const { score, value } of client.zScanIterator('sorted-set')) {}
|
||||
```
|
||||
|
||||
You can override the default options by providing a configuration object:
|
||||
|
Reference in New Issue
Block a user