class Redis::Config

Included Modules

Defined in:

redis/config.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(ctx : YAML::ParseContext, node : YAML::Nodes::Node) #

[View source]
def self.new(host : String = "localhost", port : Int32 = 6379, unixsocket : String | Nil = nil, password : String | Nil = nil, database : Int32 | Nil = nil, url = nil, ssl : Bool = false, ssl_context : OpenSSL::SSL::Context::Client | Nil = nil, dns_timeout : Time::Span | Nil = nil, connect_timeout : Time::Span | Nil = nil, reconnect : Bool = true, command_timeout : Time::Span | Nil = nil, role : String | Nil = "master", sentinels : Array(Hash(Symbol, String | Int32)) | Nil = nil) #

[View source]

Class Method Detail

def self.from_file(file_path : String) #

[View source]
def self.from_string(str : String) #

[View source]

Instance Method Detail

def cast #

[View source]
def command_timeout : Time::Span | Nil #

[View source]
def command_timeout=(command_timeout : Time::Span | Nil) #

[View source]
def connect_timeout : Time::Span | Nil #

[View source]
def connect_timeout=(connect_timeout : Time::Span | Nil) #

[View source]
def database : Int32 | Nil #

[View source]
def database=(database : Int32 | Nil) #

[View source]
def dns_timeout : Time::Span | Nil #

[View source]
def dns_timeout=(dns_timeout : Time::Span | Nil) #

[View source]
def host : String #

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

[View source]
def password : String | Nil #

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

[View source]
def port : Int32 #

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

[View source]
def reconnect : Bool #

[View source]
def reconnect=(reconnect : Bool) #

[View source]
def redis #

[View source]
def role : String? #

additional instance variables for role and sentinels


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

additional instance variables for role and sentinels


[View source]
def sentinels : Array(Sentinel) | Nil #

[View source]
def sentinels=(sentinels : Array(Sentinel) | Nil) #

[View source]
def ssl : Bool #

[View source]
def ssl=(ssl : Bool) #

[View source]
def ssl_context : OpenSSL::SSL::Context::Client | Nil #

[View source]
def ssl_context=(ssl_context : OpenSSL::SSL::Context::Client | Nil) #

[View source]
def to_args #

hacky replacement for args to Redis#initialize


[View source]
def unixsocket : String | Nil #

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

[View source]
def url : String | Nil #

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

[View source]