Class: ActiveSupport::Cache::CompressedMemCacheStore
- Inherits:
-
MemCacheStore
- Object
- Store
- MemCacheStore
- ActiveSupport::Cache::CompressedMemCacheStore
- Defined in:
- activesupport/lib/active_support/cache/compressed_mem_cache_store.rb
Constant Summary
Constants inherited from MemCacheStore
MemCacheStore::ESCAPE_KEY_CHARS
Instance Attribute Summary
Attributes inherited from Store
Instance Method Summary collapse
-
#initialize(*args) ⇒ CompressedMemCacheStore
constructor
A new instance of CompressedMemCacheStore.
Methods inherited from MemCacheStore
build_mem_cache, #clear, #decrement, #increment, #read_multi, #stats
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) ⇒ CompressedMemCacheStore
Returns a new instance of CompressedMemCacheStore.
4 5 6 7 8 9 10 |
# File 'activesupport/lib/active_support/cache/compressed_mem_cache_store.rb', line 4 def initialize(*args) ActiveSupport::Deprecation.warn('ActiveSupport::Cache::CompressedMemCacheStore has been deprecated in favor of ActiveSupport::Cache::MemCacheStore(:compress => true).', caller) addresses = args.dup = addresses. args = addresses + [.merge(:compress => true)] super(*args) end |