Redis::Config
Inherits YAML::Serializable < Reference < Object
Constructors
new(ctx : YAML::ParseContext, node : YAML::Nodes::Node)
Sourcenew(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)
Sourcenew(*, __context_for_yaml_serializable ctx : YAML::ParseContext, __node_for_yaml_serializable node : YAML::Nodes::Node)
SourceClass methods
from_file(file_path : String)
Sourcefrom_string(str : String)
SourceInstance methods
cast
Sourcecommand_timeout
Sourcecommand_timeout=(command_timeout : Time::Span | Nil)
Sourceconnect_timeout
Sourceconnect_timeout=(connect_timeout : Time::Span | Nil)
Sourcedatabase
Sourcedatabase=(database : Int32 | Nil)
Sourcedns_timeout
Sourcedns_timeout=(dns_timeout : Time::Span | Nil)
Sourcehost
Sourcehost=(host : String)
Sourcepassword
Sourcepassword=(password : String | Nil)
Sourceport
Sourceport=(port : Int32)
Sourcereconnect
Sourcereconnect=(reconnect : Bool)
Sourceredis
Sourcesentinels
Sourcesentinels=(sentinels : Array(Sentinel) | Nil)
Sourcessl
Sourcessl=(ssl : Bool)
Sourcessl_context
Sourcessl_context=(ssl_context : OpenSSL::SSL::Context::Client | Nil)
Sourceunixsocket
Sourceunixsocket=(unixsocket : String | Nil)
Sourceurl
Sourceurl=(url : String | Nil)
Source