Module: JohnnyCache
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/johnny_cache.rb
Overview
include JohnnyCache
Defined Under Namespace
Modules: ClassMethods Classes: MethodCache
Constant Summary collapse
- STORE =
nil || Rails.cache
Instance Method Summary collapse
Instance Method Details
#cache ⇒ Object #cache(options = {}) ⇒ Object #cache(cache_operation = :fetch) ⇒ Object #cache(cache_operation = :fetch, options = {}) ⇒ Object
69 70 71 |
# File 'lib/johnny_cache.rb', line 69 def cache(*args) MethodCache.new(self, *args) end |