“djh”
2024-12-04 d1549b8445c65a6775cf1ba093f5040ace0f87e7
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
singleServerConfig:
  #  连接空闲超时,单位:毫秒
  idleConnectionTimeout: 100000
  #  连接超时,单位:毫秒
  connectTimeout: 10000
  #  命令等待超时,单位:毫秒
  timeout: 3000
  #  命令失败重试次数
  retryAttempts: 3
  #  命令重试发送时间间隔,单位:毫秒
  retryInterval: 1500
  #  密码
  password: wioowr23923sd3*&
  #  单个连接最大订阅数量
  subscriptionsPerConnection: 5
  #  客户端名称
#  clientName: null
  #  节点地址
  address: redis://192.168.2.16:6379
#  #  发布和订阅连接的最小空闲连接数
#  subscriptionConnectionMinimumIdleSize: 1
#  #  发布和订阅连接池大小
#  subscriptionConnectionPoolSize: 50
  #  最小空闲连接数
  connectionMinimumIdleSize: 4
  #  连接池大小
  connectionPoolSize: 8
  #  redis数据库编号
  database: 0
  #  DNS监测时间间隔,单位:毫秒
  dnsMonitoringInterval: 5000
#  线程池数量
threads: 8
#  Netty线程池数量
nettyThreads: 4
#  编码
codec:
  class: "org.redisson.codec.JsonJacksonCodec"
#  传输模式
transportMode: "NIO"
#  配置看门狗的默认超时时间为30s,这里改为10s
lockWatchdogTimeout: 10000