public class RedisSentinelNode extends RedisNode
DEFAULT_DATABASE, DEFAULT_HOST, DEFAULT_PORT, DEFAULT_SENTINEL_PORT
构造器和说明 |
---|
RedisSentinelNode(String host)
构造函数
|
RedisSentinelNode(String host,
int port)
构造函数
|
RedisSentinelNode(String host,
int port,
Role role)
构造函数
|
RedisSentinelNode(String host,
Role role)
构造函数
|
public RedisSentinelNode(@Nullable String host)
host
- 主机地址public RedisSentinelNode(@Nullable String host, int port)
host
- 主机地址port
- 端口public RedisSentinelNode(@Nullable String host, @Nullable Role role)
host
- 主机地址role
- 主机角色Copyright © 2023 buession.com Inc.. All rights reserved.