Class: Rollie::RedisPool

Inherits:
Object
  • Object
show all
Defined in:
lib/rollie/redis_pool.rb

Class Method Summary collapse

Class Method Details

.create(options = {}) ⇒ Object



10
11
12
13
14
15
16
17
# File 'lib/rollie/redis_pool.rb', line 10

def create(options = {})
  pool_size = options[:pool_size] || 5
  pool_timeout = options[:pool_timeout] || 1

  ConnectionPool.new(timeout: pool_timeout, size: pool_size) do
    build_client(options)
  end
end