instance method
save_block_result_to_cache
Ruby on Rails 6.1.7.10
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 750
def save_block_result_to_cache(name, options)
result = instrument(:generate, name, options) do
yield(name)
end
write(name, result, options) unless result.nil? && options[:skip_nil]
result
end
Defined in activesupport/lib/active_support/cache.rb line 750
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::Cache::Store