Class: Taskinator::RedisConnection
- Inherits:
-
Object
- Object
- Taskinator::RedisConnection
- Defined in:
- lib/taskinator/redis_connection.rb
Class Method Summary collapse
Class Method Details
.create(options = {}) ⇒ Object
22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 |
# File 'lib/taskinator/redis_connection.rb', line 22 def create(={}) url = [:url] || determine_redis_provider if url [:url] = url end pool_size = [:pool_size] || 5 pool_timeout = [:pool_timeout] || 1 log_info() ConnectionPool.new(:timeout => pool_timeout, :size => pool_size) do build_client() end end |