Convenience accessor
# File action_controller/caching.rb, line 57 def cache(key, options = nil, &block) if cache_configured? cache_store.fetch(ActiveSupport::Cache.expand_cache_key(key, :controller), options, &block) else yield end end
<code/>
<pre/>
<code/>and<pre/>for code samples.