class Sidekiq::RedisConfig

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.cr

Constant Summary

DEFAULT_HOST = "localhost"
DEFAULT_PORT = 6379

Constructors

Instance Method Summary

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) #

[View source]

Instance Method Detail

def db : Int32 #

[View source]
def db=(db : Int32) #

[View source]
def hostname : String #

[View source]
def hostname=(hostname : String) #

[View source]
def new_client #

[View source]
def new_pool #

[View source]
def password : String | Nil #

[View source]
def password=(password : String | Nil) #

[View source]
def pool_size : Int32 #

[View source]
def pool_size=(pool_size : Int32) #

[View source]
def pool_timeout : Float64 #

[View source]
def pool_timeout=(pool_timeout : Float64) #

[View source]
def port : Int32 #

[View source]
def port=(port : Int32) #

[View source]