# Functions
ExampleClusterUsage 使用示例
@see https://github.com/go-redis/redis.
ExampleUsage 使用示例
@see https://github.com/go-redis/redis.
GetClusterInstance 获取redis集群连接实例.
GetInstance 获取redis连接实例
获取由InitRedis方法实例化后的连接.
InitRedis 初始化redis连接.
InitRedisCluster 初始化redis集群连接.
New 实例化新的实例.
NewCluster 实例化新的实例.
# Structs
ClusterConf 集群配置信息
<yaml example>
redis_cluster_conf:
enable: false ssl_enable: false endpoints: - host: 127.0.0.1 port: 6379 username: "" password: Mt583611 - host: 127.0.0.1 port: 6380 username: "" password: Mt583611 - host: 127.0.0.1 port: 6381 username: "" password: Mt583611
<toml example>
# ::redis cluster配置::
[redis_cluster_conf]
enable = false
ssl_enable = false
[[redis_cluster_conf.endpoints]]
host = "localhost"
username = ""
port = 6379
password = ""
[[redis_cluster_conf.endpoints]]
host = "localhost"
username = ""
port = 6380
password = ""
[[redis_cluster_conf.endpoints]]
host = "localhost"
username = ""
port = 6381
password = "".
Conf 配置信息
<yaml example>
redis_conf:
enable = false
endpoint: host: "127.0.0.1" port: 6379 username: "" password: "" database: 0 ssl_enable: false
<toml example>
# ::redis配置::
[redis_conf]
enable = false
[redis_conf.endpoint]
host = "localhost"
username = ""
port = 6379
password = ""
database = 0
ssl_enable = false.
No description provided by the author