You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-12-11 09:22:35 +03:00
committed by
GitHub
parent
1d824df9e1
commit
6ad4c68655
@@ -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):
|
||||
|
||||
```typescript
|
||||
for await (const key of client.scanIterator()) {
|
||||
// use the key!
|
||||
await client.get(key);
|
||||
for await (const keys of client.scanIterator()) {
|
||||
console.log(keys, await client.mGet(keys));
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user