You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-06 02:15:48 +03:00
use dockers for tests, use npm workspaces, add rejson & redisearch modules, fix some bugs
This commit is contained in:
@@ -1,19 +0,0 @@
|
||||
// An example script that shows how to use the SSCAN iterator functionality to retrieve the contents of a Redis set.
|
||||
// Create the set in redis-cli with this command:
|
||||
// sadd setName a b c d e f g h i j k l m n o p q
|
||||
|
||||
import { createClient } from 'redis';
|
||||
|
||||
async function setScan() {
|
||||
const client = createClient();
|
||||
await client.connect();
|
||||
|
||||
const setName = 'setName';
|
||||
for await (const member of client.sScanIterator(setName)) {
|
||||
console.log(member);
|
||||
}
|
||||
|
||||
await client.quit();
|
||||
}
|
||||
|
||||
setScan();
|
Reference in New Issue
Block a user