1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
| 'use strict';
|
| exports.redis = {
| default: {
| },
| app: true,
| agent: false,
| // redis client will try to use TIME command to detect client is ready or not
| // if your redis server not support TIME command, please set this config to false
| // see https://redis.io/commands/time
| supportTimeCommand: true,
| // Redis: require('ioredis'), // customize ioredis version, only set when you needed
|
| // Single Redis
| // client: {
| // host: 'host',
| // port: 'port',
| // family: 'user',
| // password: 'password',
| // db: 'db',
| // },
|
| // Cluster Redis
| // client: {
| // cluster: true,
| // nodes: [{
| // host: 'host',
| // port: 'port',
| // family: 'user',
| // password: 'password',
| // db: 'db',
| // },{
| // host: 'host',
| // port: 'port',
| // family: 'user',
| // password: 'password',
| // db: 'db',
| // },
| // ]},
|
| // Multi Redis
| // clients: {
| // instance1: {
| // host: 'host',
| // port: 'port',
| // family: 'user',
| // password: 'password',
| // db: 'db',
| // },
| // instance2: {
| // host: 'host',
| // port: 'port',
| // family: 'user',
| // password: 'password',
| // db: 'db',
| // },
| // },
| };
|
|