Class: ActiveSupport::Cache::CompressedMemCacheStore

Inherits:
MemCacheStore show all
Defined in:
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

#options, #silence

Instance Method Summary collapse

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 '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
  options = addresses.extract_options!
  args = addresses + [options.merge(:compress => true)]
  super(*args)
end