Ejemplo n.º 1
0
        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
                });
        }
Ejemplo n.º 2
0
        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
                });
        }
Ejemplo n.º 3
0
        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
            });
        }