class Sidekiq::RedisConfig
- Sidekiq::RedisConfig
 - Reference
 - Object
 
Overview
Configures how Sidekiq connects to Redis.
Sidekiq::RedisConfig.new(hostname: "some.hostname.com", port: 2345, db: 14, password: "xyzzy")
Alternatively you can set environment variables to configure Redis:
MY_REDIS_URL=redis://:[email protected]:2435/14 REDIS_PROVIDER=MY_REDIS_URL
Note that you set REDIS_PROVIDER to the name of the variable which contains the URL.
Defined in:
sidekiq/pool.crConstant Summary
- 
        DEFAULT_HOST = 
"localhost" - 
        DEFAULT_PORT = 
6379 
Constructors
Instance Method Summary
- #db : Int32
 - #db=(db : Int32)
 - #hostname : String
 - #hostname=(hostname : String)
 - #new_client
 - #new_pool
 - #password : String | Nil
 - #password=(password : String | Nil)
 - #pool_size : Int32
 - #pool_size=(pool_size : Int32)
 - #pool_timeout : Float64
 - #pool_timeout=(pool_timeout : Float64)
 - #port : Int32
 - #port=(port : Int32)
 
Constructor Detail
        
        def self.new(hostname : String = DEFAULT_HOST, port : Int32 = DEFAULT_PORT, db : Int32 = 0, pool_size : Int32 = 26, pool_timeout : Float64 = 5.0, password : Nil | String = nil)
        #