Class: ActiveSupport::Cache::CompressedMemCacheStore

Inherits:
MemCacheStore
  • Object
show all
Defined in:
lib/active_support/cache/compressed_mem_cache_store.rb

Instance Method Summary collapse

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