lib/storyblok/cache/redis.rb in storyblok-2.1.1 vs lib/storyblok/cache/redis.rb in storyblok-3.0.0
- old
+ new
@@ -1,10 +1,12 @@
module Storyblok
module Cache
class Redis
DEFAULT_CONFIGURATION = {
ttl: 60 * 60 * 24
- }
+ }.freeze
+
+ attr_reader :redis
def initialize(*args)
options = args.last.is_a?(::Hash) ? args.pop : {}
@redis = options.delete(:redis) || begin