命名空間
- 模組 AbstractController::Caching::ClassMethods
- 模組 AbstractController::Caching::ConfigMethods
- 模組 AbstractController::Caching::Fragments
方法
包含的模組
執行個體公開方法
檢視快取相依性() 連結
來源: 顯示 | 在 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
執行個體私有方法
快取(金鑰、選項 = {}、&區塊) 連結
方便存取器。
來源: 顯示 | 在 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