lib/storyblok/cache.rb in storyblok-1.0.3 vs lib/storyblok/cache.rb in storyblok-1.0.4

- old
+ new

@@ -6,10 +6,10 @@ def self.client @client end - def cache(key, expire = nil) + def self.cache(key, expire = nil) if expire == 0 return yield(self) end if (value = @client.get(key)).nil?