showing results for - "ioredis cluster example"
Ilan
26 Aug 2019
1var Redis = require('ioredis');
2
3var cluster = new Redis.Cluster([{
4  host: '127.0.0.1',
5  port: 7000
6}, {
7  host: '127.0.0.1',
8  port: 7001
9}, {
10  host: '127.0.0.1',
11  port: 7002
12}]);
13
14console.log(cluster.nodes());
15