示例#1
0
 /// <summary>
 /// 注册
 /// </summary>
 /// <param name="csRedis">csRedis</param>
 public static void Register(CSRedisClient csRedis)
 {
     //初始化 RedisHelper
     RedisHelper.Initialization(csRedis);
     //初始化 RedisCacheHelper
     RedisCacheHelper.Initialization(csRedis);
 }
示例#2
0
        /// <summary>
        /// 注册
        /// </summary>
        public static void Register()
        {
            var csRedis = new CSRedisClient(RedisConfig.RedisConnection);

            //初始化 RedisHelper
            RedisHelper.Initialization(csRedis);
            //初始化 RedisCacheHelper
            RedisCacheHelper.Initialization(csRedis);
        }