Class: Flipper::Adapters::RedisCache

Inherits:
CacheBase
  • Object
show all
Includes:
RedisShared
Defined in:
lib/flipper/adapters/redis_cache.rb

Overview

Public: Adapter that wraps another adapter with the ability to cache adapter calls in Redis.

Instance Method Summary collapse

Constructor Details

#initialize(adapter, cache, ttl = 3600, prefix: nil) ⇒ RedisCache

Returns a new instance of RedisCache.



13
14
15
16
# File 'lib/flipper/adapters/redis_cache.rb', line 13

def initialize(adapter, cache, ttl = 3600, prefix: nil)
  @client = cache
  super
end