public static RedisPools GetInstance(string poolName) { if (_pools.ContainsKey(poolName)) { return(_pools[poolName] as RedisPools); } RedisPools pool = new RedisPools(); _pools[poolName] = pool; return(pool); }
public Redis(string poolName) { _pool = RedisPools.GetInstance(poolName); }
public Redis() { _pool = RedisPools.GetInstance("TestRedisPool"); }