Method: ActiveSupport::Cache::Strategy::LocalCache#with_local_cache

Defined in:
activesupport/lib/active_support/cache/strategy/local_cache.rb

#with_local_cache(&block) ⇒ Object

Use a local cache for the duration of block.



67
68
69
# 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