Example #1
0
        private RedisCacheProvider(RedisConfig config)
        {
            var redisManager = new RedisManager(config);

            _redisReadClient  = redisManager.GetReadOnlyClient();
            _redisWriteClient = redisManager.GetClient();
        }
Example #2
0
 /// <summary>
 /// 静态构造函数
 /// </summary>
 public RedisManager(RedisConfig config)
 {
     _redisConfig = config;
     CreateManager();
 }