Class: ActiveSupport::Cache::SynchronizedMemoryStore
- Inherits:
-
MemoryStore
- Object
- Store
- MemoryStore
- ActiveSupport::Cache::SynchronizedMemoryStore
- Defined in:
- activesupport/lib/active_support/cache/synchronized_memory_store.rb
Overview
Like MemoryStore, but thread-safe.
Instance Attribute Summary
Attributes inherited from Store
Instance Method Summary collapse
-
#initialize(*args) ⇒ SynchronizedMemoryStore
constructor
A new instance of SynchronizedMemoryStore.
Methods inherited from MemoryStore
#cleanup, #clear, #decrement, #delete_matched, #increment, #inspect, #prune, #pruning?, #synchronize
Methods inherited from Store
#cleanup, #clear, #decrement, #delete, #delete_matched, #exist?, #fetch, #increment, instrument, instrument=, #mute, #read, #read_multi, #silence!, #write
Constructor Details
#initialize(*args) ⇒ SynchronizedMemoryStore
Returns a new instance of SynchronizedMemoryStore.
5 6 7 8 |
# File 'activesupport/lib/active_support/cache/synchronized_memory_store.rb', line 5 def initialize(*args) ActiveSupport::Deprecation.warn('ActiveSupport::Cache::SynchronizedMemoryStore has been deprecated in favor of ActiveSupport::Cache::MemoryStore.', caller) super end |