|
2 | 2 |
|
3 | 3 | This folder contains example scripts showing how to use Node Redis in different scenarios.
|
4 | 4 |
|
5 |
| -| File Name | Description | |
6 |
| -| --------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------- | |
7 |
| -| `blocking-list-pop.js` | Block until an element is pushed to a list | |
8 |
| -| `bloom-filter.js` | Space efficient set membership checks with a [Bloom Filter](https://en.wikipedia.org/wiki/Bloom_filter) using [RedisBloom](https://redisbloom.io) | |
9 |
| -| `command-with-modifiers.js` | Define a script that allows to run a command with several modifiers | |
10 |
| -| `connect-as-acl-user.js` | Connect to Redis 6 using an ACL user | |
11 |
| -| `connect-to-cluster.js` | Connect to Redis cluster | |
12 |
| -| `count-min-sketch.js` | Estimate the frequency of a given event using the [RedisBloom](https://redisbloom.io) Count-Min Sketch | |
13 |
| -| `cuckoo-filter.js` | Space efficient set membership checks with a [Cuckoo Filter](https://en.wikipedia.org/wiki/Cuckoo_filter) using [RedisBloom](https://redisbloom.io) | |
14 |
| -| `get-server-time.js` | Get the time from the Redis server | |
15 |
| -| `hyperloglog.js` | Showing use of Hyperloglog commands [PFADD, PFCOUNT and PFMERGE](https://redis.io/commands/?group=hyperloglog) | |
16 |
| -| `lua-multi-incr.js` | Define a custom lua script that allows you to perform INCRBY on multiple keys | |
17 |
| -| `managing-json.js` | Store, retrieve and manipulate JSON data atomically with [RedisJSON](https://redisjson.io/) | |
18 |
| -| `pubsub-publisher.js` | Adds multiple messages on 2 different channels messages to Redis | |
19 |
| -| `pubsub-subscriber.js` | Reads messages from channels using `PSUBSCRIBE` command | |
20 |
| -| `search-hashes.js` | Uses [RediSearch](https://redisearch.io) to index and search data in hashes | |
21 |
| -| `search-json.js` | Uses [RediSearch](https://redisearch.io/) and [RedisJSON](https://redisjson.io/) to index and search JSON data | |
22 |
| -| `set-scan.js` | An example script that shows how to use the SSCAN iterator functionality | |
23 |
| -| `sorted-set.js` | Add members with scores to a Sorted Set and retrieve them using the ZSCAN iteractor functionality | |
24 |
| -| `stream-producer.js` | Adds entries to a [Redis Stream](https://redis.io/topics/streams-intro) using the `XADD` command | |
25 |
| -| `stream-consumer.js` | Reads entries from a [Redis Stream](https://redis.io/topics/streams-intro) using the blocking `XREAD` command | |
26 |
| -| `time-series.js` | Create, populate and query timeseries data with [Redis Timeseries](https://redistimeseries.io) | |
27 |
| -| `topk.js` | Use the [RedisBloom](https://redisbloom.io) TopK to track the most frequently seen items. | |
28 |
| -| `stream-consumer-group.js` | Reads entties from a [Redis Stream](https://redis.io/topics/streams-intro) as part of a consumer group using the blocking `XREADGROUP` command | |
29 |
| -| `transaction-with-watch.js` | An Example of [Redis transaction](https://redis.io/docs/manual/transactions) with `WATCH` command on isolated connection with optimistic locking | |
| 5 | +| File Name | Description | |
| 6 | +| ---------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- | |
| 7 | +| `blocking-list-pop.js` | Block until an element is pushed to a list. | |
| 8 | +| `bloom-filter.js` | Space efficient set membership checks with a [Bloom Filter](https://en.wikipedia.org/wiki/Bloom_filter) using [RedisBloom](https://redisbloom.io). | |
| 9 | +| `check-connection-status.js` | Check the client's connection status. | |
| 10 | +| `command-with-modifiers.js` | Define a script that allows to run a command with several modifiers. | |
| 11 | +| `connect-as-acl-user.js` | Connect to Redis 6 using an ACL user. | |
| 12 | +| `connect-to-cluster.js` | Connect to a Redis cluster. | |
| 13 | +| `count-min-sketch.js` | Estimate the frequency of a given event using the [RedisBloom](https://redisbloom.io) Count-Min Sketch. | |
| 14 | +| `cuckoo-filter.js` | Space efficient set membership checks with a [Cuckoo Filter](https://en.wikipedia.org/wiki/Cuckoo_filter) using [RedisBloom](https://redisbloom.io). | |
| 15 | +| `get-server-time.js` | Get the time from the Redis server. | |
| 16 | +| `hyperloglog.js` | Showing use of Hyperloglog commands [PFADD, PFCOUNT and PFMERGE](https://redis.io/commands/?group=hyperloglog). | |
| 17 | +| `lua-multi-incr.js` | Define a custom lua script that allows you to perform INCRBY on multiple keys. | |
| 18 | +| `managing-json.js` | Store, retrieve and manipulate JSON data atomically with [RedisJSON](https://redisjson.io/). | |
| 19 | +| `pubsub-publisher.js` | Adds multiple messages on 2 different channels messages to Redis. | |
| 20 | +| `pubsub-subscriber.js` | Reads messages from channels using `PSUBSCRIBE` command. | |
| 21 | +| `search-hashes.js` | Uses [RediSearch](https://redisearch.io) to index and search data in hashes. | |
| 22 | +| `search-json.js` | Uses [RediSearch](https://redisearch.io/) and [RedisJSON](https://redisjson.io/) to index and search JSON data. | |
| 23 | +| `set-scan.js` | An example script that shows how to use the SSCAN iterator functionality. | |
| 24 | +| `sorted-set.js` | Add members with scores to a Sorted Set and retrieve them using the ZSCAN iteractor functionality. | |
| 25 | +| `stream-producer.js` | Adds entries to a [Redis Stream](https://redis.io/topics/streams-intro) using the `XADD` command. | |
| 26 | +| `stream-consumer.js` | Reads entries from a [Redis Stream](https://redis.io/topics/streams-intro) using the blocking `XREAD` command. | |
| 27 | +| `time-series.js` | Create, populate and query timeseries data with [Redis Timeseries](https://redistimeseries.io). | |
| 28 | +| `topk.js` | Use the [RedisBloom](https://redisbloom.io) TopK to track the most frequently seen items. | |
| 29 | +| `stream-consumer-group.js` | Reads entries from a [Redis Stream](https://redis.io/topics/streams-intro) as part of a consumer group using the blocking `XREADGROUP` command. | |
| 30 | +| `tranaaction-with-arbitrary-commands.js` | Mix and match supported commands with arbitrary command strings in a Redis transaction. | |
| 31 | +| `transaction-with-watch.js` | An Example of [Redis transaction](https://redis.io/docs/manual/transactions) with `WATCH` command on isolated connection with optimistic locking. | |
30 | 32 |
|
31 | 33 | ## Contributing
|
32 | 34 |
|
|
0 commit comments