/// <summary>
 /// 基于Redis集群的Redis初始化
 /// </summary>
 /// <param name="readWriteHosts">设置Redis主机IP配置信息(读写),多个逗号英文分隔.有密码的格式:redis:[email protected]:6379,无密码的格式:127.0.0.1:6379</param>
 /// <param name="readOnlyHosts">设置Redis主机IP配置信息(只读)</param>
 /// <param name="poolSize">连接池大小,默认1个</param>
 /// <param name="defaultdb">默认redis连接DB</param>
 public static void InitRedis(string readWriteHosts, string readOnlyHosts = "", int poolSize = 1, int defaultdb = 0)
 {
     redisPool = RoundRobinSSRedisPool.Create().RedisConfig(readWriteHosts, readOnlyHosts).PoolConfig(poolSize, defaultdb).BuildRedis();
 }
 /// <summary>
 /// 基于ZK的Codis初始化
 /// </summary>
 /// <param name="zkhosts">ZK地址,多个以“,”分割</param>
 /// <param name="db_proxy">CodisProxy实例节点</param>
 /// <param name="poolSize">连接池大小,默认1个</param>
 /// <param name="defaultdb">默认redis连接DB</param>
 public static void Init(string zkhosts, string db_proxy, int poolSize = 1, int defaultdb = 0)
 {
     redisPool = RoundRobinSSRedisPool.Create().CuratorClient(zkhosts, 60).ZkProxyDir(db_proxy).PoolConfig(poolSize, defaultdb).Build();
 }