class

Redis::Config

Inherits YAML::Serializable < Reference < Object

Constructors

new(ctx : YAML::ParseContext, node : YAML::Nodes::Node)
Source
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)
Source
new(*, __context_for_yaml_serializable ctx : YAML::ParseContext, __node_for_yaml_serializable node : YAML::Nodes::Node)
Source

Class methods

from_file(file_path : String)
Source
from_string(str : String)
Source

Instance methods

cast
Source
command_timeout
Source
command_timeout=(command_timeout : Time::Span | Nil)
Source
connect_timeout
Source
connect_timeout=(connect_timeout : Time::Span | Nil)
Source
database
Source
database=(database : Int32 | Nil)
Source
dns_timeout
Source
dns_timeout=(dns_timeout : Time::Span | Nil)
Source
host
Source
host=(host : String)
Source
password
Source
password=(password : String | Nil)
Source
port
Source
port=(port : Int32)
Source
reconnect
Source
reconnect=(reconnect : Bool)
Source
redis
Source
role

additional instance variables for role and sentinels

Source
role=(role : Nil | String)

additional instance variables for role and sentinels

Source
sentinels
Source
sentinels=(sentinels : Array(Sentinel) | Nil)
Source
ssl=(ssl : Bool)
Source
ssl_context
Source
ssl_context=(ssl_context : OpenSSL::SSL::Context::Client | Nil)
Source
to_args

hacky replacement for args to Redis#initialize

Source
unixsocket
Source
unixsocket=(unixsocket : String | Nil)
Source
url=(url : String | Nil)
Source

Nested types