我能够使用redisson作为java客户端连接到redis独立服务器 .

下面是我们用于连接到独立redis的连接代码 .

client=Redisson.create(Config.fromJSON("Config.json"))

Config.json

{
  "singleServerConfig": {
  "idleConnectionTimeout": 10000,
  "pingTimeout": 1000,
  "connectTimeout": 10000,
  "timeout": 3000,
  "retryAttempts": 3,
  "retryInterval": 1500,
  "reconnectionTimeout": 3000,
  "failedAttempts": 3,
  "password": null,
  "subscriptionsPerConnection": 5,
  "clientName": null,
  "address": "redis://127.0.0.1:6379",
  "subscriptionConnectionMinimumIdleSize": 1,
  "subscriptionConnectionPoolSize": 50,
  "connectionMinimumIdleSize": 10,
  "connectionPoolSize": 64,
  "database": 0,
  "dnsMonitoring": false,
  "dnsMonitoringInterval": 5000
 },
"threads": 0,
"nettyThreads": 0,
"codec": null,
"useLinuxNativeEpoll": false
}

这是我正在使用的配置文件 . 所以,我想连接到redis集群也使用Redisson作为Java客户端 . 请分享一些例子 .