redis-iterate-keys
Iterate over keys in Redis, using the SCAN
command.
Installation
npm install redis-iterate-keys
Usage
const Redis = const iterateKeys = const redis = for await const key of consoleredis
You can pass the following options:
opt.match
: Match keys with a pattern, see theMATCH
docsopt.batchSize
: How many keys to retrieve in oneSCAN
call. Set it to a higher number for higher iteration speed. Default: 20
Related
redis-scanrx
– Rx interface to RedisSCAN
.redis-skim
– Callback interface to RedisSCAN
.
Contributing
If you have a question or need support using redis-iterate-keys
, please double-check your code and setup first. If you think you have found a bug or want to propose a feature, use the issues page.