aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/cache/compressed_mem_cache_store.rb
blob: 7c7d1c4b00b698aa295b2abf1e6c38ab6c62a647 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
module ActiveSupport
  module Cache
    class CompressedMemCacheStore < MemCacheStore
      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
    end
  end
end