Module: AbstractController::Caching::ConfigMethods
Relationships & Source Files | |
Extension / Inclusion / Inheritance Descendants | |
Included In:
| |
Defined in: | actionpack/lib/abstract_controller/caching.rb |
Instance Attribute Summary
- #cache_store rw
- #cache_store=(store) rw
- #cache_configured? ⇒ Boolean readonly private
Instance Attribute Details
#cache_configured? ⇒ Boolean
(readonly, private)
[ GitHub ]
# File 'actionpack/lib/abstract_controller/caching.rb', line 22
def cache_configured? perform_caching && cache_store end
#cache_store (rw)
[ GitHub ]# File 'actionpack/lib/abstract_controller/caching.rb', line 13
def cache_store config.cache_store end
#cache_store=(store) (rw)
[ GitHub ]# File 'actionpack/lib/abstract_controller/caching.rb', line 17
def cache_store=(store) config.cache_store = ActiveSupport::Cache.lookup_store(*store) end