RedisClientPool 构造函数 (String, Int32, String, ActionRedisClient) |
实例化一个默认的客户端连接池对象,需要指定实例Redis对象时的IP,端口,密码信息,以及可以指定额外的初始化操作
To instantiate a default client connection pool object, you need to specify the IP, port,
and password information when the Redis object is instantiated, and you can specify additional initialization operations
命名空间:
HslCommunication.Enthernet.Redis
程序集:
HslCommunication (在 HslCommunication.dll 中) 版本:12.1.2.0 (12.1.2.0)
语法 public RedisClientPool(
string ipAddress,
int port,
string password,
Action<RedisClient> initialize
)
Public Sub New (
ipAddress As String,
port As Integer,
password As String,
initialize As Action(Of RedisClient)
)
public:
RedisClientPool(
String^ ipAddress,
int port,
String^ password,
Action<RedisClient^>^ initialize
)
new :
ipAddress : string *
port : int *
password : string *
initialize : Action<RedisClient> -> RedisClientPool
参数
- ipAddress
- 类型:SystemString
IP地址信息 - port
- 类型:SystemInt32
端口号信息 - password
- 类型:SystemString
密码,如果没有,请输入空字符串 - initialize
- 类型:SystemActionRedisClient
额外的初始化信息,比如修改db块的信息。
参见