Module: CacheWithSettings::Helpers::CacheHelper

Defined in:
lib/cache_with_settings/helpers/cache_helper.rb

Instance Method Summary collapse

Instance Method Details

#cache(key, options = {}, &block) ⇒ Object



5
6
7
8
9
# File 'lib/cache_with_settings/helpers/cache_helper.rb', line 5

def cache(key, options = {}, &block)
  super(CacheWithSettings.compose_key(key), options) do
    yield(block)
  end
end