instance method
with_local_cache
Ruby on Rails 4.0.13
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 60
def with_local_cache
use_temporary_local_cache(LocalStore.new) { yield }
end
Defined in activesupport/lib/active_support/cache/strategy/local_cache.rb line 60
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::Cache::Strategy::LocalCache