命名空间
- 模块 AbstractController::Caching::ClassMethods
- 模块 AbstractController::Caching::ConfigMethods
- 模块 AbstractController::Caching::Fragments
方法
包含的模块
实例公共方法
view_cache_dependencies() 链接
来源:显示 | 在 GitHub 上
# File actionpack/lib/abstract_controller/caching.rb, line 52 def view_cache_dependencies self.class._view_cache_dependencies.filter_map { |dep| instance_exec(&dep) } end
实例私有方法
cache(key, options = {}, &block) 链接
便捷访问器。
来源:显示 | 在 GitHub 上
# File actionpack/lib/abstract_controller/caching.rb, line 58 def cache(key, options = {}, &block) # :doc: if cache_configured? cache_store.fetch(ActiveSupport::Cache.expand_cache_key(key, :controller), options, &block) else yield end end