instance method
with_local_cache
Ruby on Rails 7.1.6
Since v2.3.18Signature
with_local_cache(&block)
Use a local cache for the duration of block.
Parameters
-
blockblock
Source
# File activesupport/lib/active_support/cache/strategy/local_cache.rb, line 67
def with_local_cache(&block)
use_temporary_local_cache(LocalStore.new, &block)
end
Defined in activesupport/lib/active_support/cache/strategy/local_cache.rb line 67
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::Cache::Strategy::LocalCache