Class: ActionController::Caching::Fragments::FileStore

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

Overview

:nodoc:

Instance Attribute Summary

Attributes inherited from UnthreadedFileStore

#cache_path

Instance Method Summary collapse

Methods inherited from UnthreadedFileStore

#delete, #delete_matched, #read, #write

Constructor Details

#initialize(cache_path) ⇒ FileStore

Returns a new instance of FileStore.



463
464
465
466
467
468
469
# File 'lib/action_controller/caching.rb', line 463

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