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.
461 462 463 464 465 466 467 |
# File 'lib/action_controller/caching.rb', line 461 def initialize(cache_path) super(cache_path) if ActionController::Base.allow_concurrency @mutex = Mutex.new FileStore.send(:include, ThreadSafety) end end |