lib/flipper/adapters/redis_cache.rb in flipper-redis-0.11.0 vs lib/flipper/adapters/redis_cache.rb in flipper-redis-0.12.0
- old
+ new
@@ -126,16 +126,16 @@
result[feature.key] = cache_result[feature.key]
end
result
end
- def fetch(key)
- cached = @cache.get(key)
+ def fetch(cache_key)
+ cached = @cache.get(cache_key)
if cached
Marshal.load(cached)
else
to_cache = yield
- set_with_ttl(key_for(key), to_cache)
+ set_with_ttl(cache_key, to_cache)
to_cache
end
end
def set_with_ttl(key, value)