Class: Redis::Pooled
Instance Attribute Summary
#connection_pool, #preparation_chain
Instance Method Summary
collapse
#__prepare, #with_connection
Constructor Details
#initialize(options = {}) ⇒ Pooled
8
9
10
11
|
# File 'lib/redis/pooled.rb', line 8
def initialize(options = {})
@redis_options = options
super
end
|
Instance Method Details
#__connection ⇒ Object
13
14
15
|
# File 'lib/redis/pooled.rb', line 13
def __connection
Redis.connect(@redis_options)
end
|
#__disconnect(client) ⇒ Object
17
18
19
|
# File 'lib/redis/pooled.rb', line 17
def __disconnect(client)
client.quit if client
end
|