JoobQ::RedisPool
Inherits Redis::PooledClient < Reference < Object
Redis::PooledClient whose connections are RedisClients. The TLS context is built once and shared.
Constructors
new(endpoint : RedisEndpoint, pool_size : Int32 = 5, pool_timeout : Float64 = 5.0, connect_timeout : Time::Span = 5.seconds, command_timeout : Time::Span = 5.seconds, operation_timeout : Time::Span = 5.seconds)
SourceInstance methods
close
Closes every connection the pool has opened. A command issued afterwards reconnects, so this is for letting go of a server (an environment that is removed, a process that is ending), not for pausing.
inspect(io : IO) : Nil
Appends a String representation of this object which includes its class name, its object address and the values of all instance variables.
class Person
def initialize(@name : String, @age : Int32)
end
end
Person.new("John", 32).inspect # => #<Person:0x10fd31f20 @name="John", @age=32>