1
0
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:
Simon Prickett
2021-11-26 23:51:54 +00:00
committed by GitHub
parent 957f5a1733
commit 14b16b9e17

View File

@ -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: