Class: ActionController::Caching::Fragments::MemoryStore

Inherits:
UnthreadedMemoryStore show all
Defined in:
lib/action_controller/caching.rb

Overview

:nodoc:

Direct Known Subclasses

DRbStore, MemCacheStore

Instance Method Summary collapse

Methods inherited from UnthreadedMemoryStore

#delete, #delete_matched, #read, #write

Constructor Details

#initializeMemoryStore

:nodoc:



372
373
374
375
376
377
378
# File 'lib/action_controller/caching.rb', line 372

def initialize #:nodoc:
  super
  if ActionController::Base.allow_concurrency
    @mutex = Mutex.new
    MemoryStore.send(:include, ThreadSafety)
  end
end