Method: ActiveSupport::Cache::MemoryStore#synchronize

Defined in:
activesupport/lib/active_support/cache/memory_store.rb

#synchronize(&block) ⇒ Object

Synchronize calls to the cache. This should be called wherever the underlying cache implementation is not thread safe.



187
188
189
# File 'activesupport/lib/active_support/cache/memory_store.rb', line 187

def synchronize(&block) # :nodoc:
  @monitor.synchronize(&block)
end