Class: Rollie::RedisPool
- Inherits:
-
Object
- Object
- Rollie::RedisPool
- 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( = {}) pool_size = [:pool_size] || 5 pool_timeout = [:pool_timeout] || 1 ConnectionPool.new(timeout: pool_timeout, size: pool_size) do build_client() end end |