public RedisStorage(string hostAndPort, int db, RedisStorageOptions options) { HostAndPort = hostAndPort; Db = db; Options = options; _pooledManager = new PooledRedisClientManager( new []{ HostAndPort }, new string[0], new RedisClientManagerConfig { DefaultDb = Db, MaxWritePoolSize = Options.ConnectionPoolSize }); }
public RedisStorage(string hostAndPort, int db, RedisStorageOptions options) { if (hostAndPort == null) throw new ArgumentNullException("hostAndPort"); if (options == null) throw new ArgumentNullException("options"); HostAndPort = hostAndPort; Db = db; Options = options; _pooledManager = new PooledRedisClientManager( new []{ HostAndPort }, new string[0], new RedisClientManagerConfig { DefaultDb = Db, MaxWritePoolSize = Options.ConnectionPoolSize }); }
public RedisStorage(string hostAndPort, int db, RedisStorageOptions options) { if (hostAndPort == null) { throw new ArgumentNullException("hostAndPort"); } if (options == null) { throw new ArgumentNullException("options"); } HostAndPort = hostAndPort; Db = db; Options = options; _pooledManager = new PooledRedisClientManager( new [] { HostAndPort }, new string[0], new RedisClientManagerConfig { DefaultDb = Db, MaxWritePoolSize = Options.ConnectionPoolSize }); }