示例#1
0
        /// <summary>
        /// Initializes the clint.
        /// </summary>
        private void InitClint()
        {
            RedisConfigInfo redisConfigInfo = RedisConfigInfo.GetConfig();

            string[] writeServerList = redisConfigInfo.WriteServerList.Split(',');
            string[] readServerList  = redisConfigInfo.ReadServerList.Split(',');

            prcm = new PooledRedisClientManager(readServerList, writeServerList,
                                                new RedisClientManagerConfig
            {
                MaxWritePoolSize = redisConfigInfo.MaxWritePoolSize,
                MaxReadPoolSize  = redisConfigInfo.MaxReadPoolSize,
                AutoStart        = redisConfigInfo.AutoStart,
            });
        }