1
0
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:
Nikolay Karadzhov
2025-05-05 11:35:41 +03:00
committed by GitHub
parent bd5c230c62
commit 2c9ad2e772
20 changed files with 133 additions and 75 deletions

View File

@@ -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();