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