示例#1
0
        public static RedisPools GetInstance(string poolName)
        {
            if (_pools.ContainsKey(poolName))
            {
                return(_pools[poolName] as RedisPools);
            }

            RedisPools pool = new RedisPools();

            _pools[poolName] = pool;

            return(pool);
        }
示例#2
0
 public Redis(string poolName)
 {
     _pool = RedisPools.GetInstance(poolName);
 }
示例#3
0
 public Redis()
 {
     _pool = RedisPools.GetInstance("TestRedisPool");
 }