You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-06 02:15:48 +03:00
chore(examples): fix examples for v5 (#2938)
This commit is contained in:
committed by
GitHub
parent
bd5c230c62
commit
2c9ad2e772
@@ -1,7 +1,7 @@
|
||||
// This is an example script to connect to a running cluster.
|
||||
// After connecting to the cluster the code sets and get a value.
|
||||
|
||||
// To setup this cluster you can follow the guide here:
|
||||
// To setup this cluster you can follow the guide here:
|
||||
// https://redis.io/docs/manual/scaling/
|
||||
// In this guide the ports which are being used are 7000 - 7005
|
||||
|
||||
@@ -29,5 +29,4 @@ await cluster.connect();
|
||||
await cluster.set('hello', 'cluster');
|
||||
const value = await cluster.get('hello');
|
||||
console.log(value);
|
||||
|
||||
await cluster.quit();
|
||||
await cluster.close();
|
||||
|
Reference in New Issue
Block a user