Method: Shrinker::Backend::Redis#initialize
- Defined in:
- lib/shrinker/backend/redis.rb
#initialize(options = {}) ⇒ Redis
Returns a new instance of Redis.
6 7 8 9 10 11 |
# File 'lib/shrinker/backend/redis.rb', line 6 def initialize( = {}) super @client_options = [:client] || {} @client = [:connection] @namespace = [:namespace] || '_shrinker' end |