instance method
save_block_result_to_cache
Ruby on Rails 4.2.9
Since v4.0.13 Private — implementation detail, not part of the public APISignature
save_block_result_to_cache(name, options)
No documentation comment.
Parameters
-
namereq -
optionsreq
Source
# File activesupport/lib/active_support/cache.rb, line 583
def save_block_result_to_cache(name, options)
result = instrument(:generate, name, options) do |payload|
yield(name)
end
write(name, result, options)
result
end
Defined in activesupport/lib/active_support/cache.rb line 583
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::Cache::Store