123456789_123456789_123456789_123456789_123456789_

Module: AbstractController::Caching::ConfigMethods

Instance Attribute Summary

Instance Attribute Details

#cache_configured?Boolean (readonly, private)

[ GitHub ]

  
# File 'actionpack/lib/abstract_controller/caching.rb', line 24

def cache_configured?
  perform_caching && cache_store
end

#cache_store (rw)

[ GitHub ]

  
# File 'actionpack/lib/abstract_controller/caching.rb', line 15

def cache_store
  config.cache_store
end

#cache_store=(store) (rw)

[ GitHub ]

  
# File 'actionpack/lib/abstract_controller/caching.rb', line 19

def cache_store=(store)
  config.cache_store = ActiveSupport::Cache.lookup_store(*store)
end