Class: ApiWarden::RedisConnection
- Inherits:
-
Object
- Object
- ApiWarden::RedisConnection
- Defined in:
- lib/api_warden/redis_connection.rb
Class Method Summary collapse
Class Method Details
.create(options = {}) ⇒ Object
10 11 12 13 14 15 16 17 |
# File 'lib/api_warden/redis_connection.rb', line 10 def create( = {}) [:url] ||= determine_redis_provider size = [:size] || 5 pool_timeout = [:pool_timeout] || 1 ConnectionPool.new(:timeout => pool_timeout, :size => size) do build_client() end end |