Class: ActionController::Caching::Fragments::FileStore
- Inherits:
-
UnthreadedFileStore
- Object
- UnthreadedFileStore
- ActionController::Caching::Fragments::FileStore
- Defined in:
- lib/action_controller/caching.rb
Overview
:nodoc:
Instance Attribute Summary
Attributes inherited from UnthreadedFileStore
Instance Method Summary collapse
-
#initialize(cache_path) ⇒ FileStore
constructor
A new instance of FileStore.
Methods inherited from UnthreadedFileStore
#delete, #delete_matched, #read, #write
Constructor Details
#initialize(cache_path) ⇒ FileStore
Returns a new instance of FileStore.
572 573 574 575 576 577 578 |
# File 'lib/action_controller/caching.rb', line 572 def initialize(cache_path) super(cache_path) if ActionController::Base.allow_concurrency @mutex = Mutex.new FileStore.module_eval { include ThreadSafety } end end |