1
0
mirror of https://github.com/redis/node-redis.git synced 2025-12-11 09:22:35 +03:00

docs: fix scanIterator example in readme (#3072)

fixes: #3071
This commit is contained in:
Nikolay Karadzhov
2025-09-01 12:07:40 +03:00
committed by GitHub
parent 1d824df9e1
commit 6ad4c68655

View File

@@ -198,9 +198,8 @@ See the [Pub/Sub overview](https://github.com/redis/node-redis/blob/master/docs/
using [async iterators](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol/asyncIterator): using [async iterators](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol/asyncIterator):
```typescript ```typescript
for await (const key of client.scanIterator()) { for await (const keys of client.scanIterator()) {
// use the key! console.log(keys, await client.mGet(keys));
await client.get(key);
} }
``` ```