class Redis::Config
- Redis::Config
- Reference
- Object
Included Modules
- YAML::Serializable
Defined in:
redis/config.crConstructors
- .new(ctx : YAML::ParseContext, node : YAML::Nodes::Node)
- .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)
Class Method Summary
Instance Method Summary
- #cast
- #command_timeout : Time::Span | Nil
- #command_timeout=(command_timeout : Time::Span | Nil)
- #connect_timeout : Time::Span | Nil
- #connect_timeout=(connect_timeout : Time::Span | Nil)
- #database : Int32 | Nil
- #database=(database : Int32 | Nil)
- #dns_timeout : Time::Span | Nil
- #dns_timeout=(dns_timeout : Time::Span | Nil)
- #host : String
- #host=(host : String)
- #password : String | Nil
- #password=(password : String | Nil)
- #port : Int32
- #port=(port : Int32)
- #reconnect : Bool
- #reconnect=(reconnect : Bool)
- #redis
-
#role : String?
additional instance variables for role and sentinels
-
#role=(role : Nil | String)
additional instance variables for role and sentinels
- #sentinels : Array(Sentinel) | Nil
- #sentinels=(sentinels : Array(Sentinel) | Nil)
- #ssl : Bool
- #ssl=(ssl : Bool)
- #ssl_context : OpenSSL::SSL::Context::Client | Nil
- #ssl_context=(ssl_context : OpenSSL::SSL::Context::Client | Nil)
-
#to_args
hacky replacement for args to Redis#initialize
- #unixsocket : String | Nil
- #unixsocket=(unixsocket : String | Nil)
- #url : String | Nil
- #url=(url : String | Nil)
Constructor Detail
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)
#