Sha256: 5c57df660352ac03e2ff79482cfbc675e33e8c964c7d6dc8911ef1c8494a4b41

Contents?: true

Size: 455 Bytes

Versions: 20

Compression:

Stored size: 455 Bytes

Contents

module ActiveSupport
  module Cache
    class CompressedMemCacheStore < MemCacheStore
      def read(name, options = nil)
        if value = super(name, (options || {}).merge(:raw => true))
          Marshal.load(ActiveSupport::Gzip.decompress(value))
        end
      end

      def write(name, value, options = nil)
        super(name, ActiveSupport::Gzip.compress(Marshal.dump(value)), (options || {}).merge(:raw => true))
      end
    end
  end
end

Version data entries

20 entries across 20 versions & 5 rubygems

Version Path
3mix-castronaut-0.5.0.2 vendor/activesupport/lib/active_support/cache/compressed_mem_cache_store.rb
masover-castronaut-0.4.4.4 vendor/activesupport/lib/active_support/cache/compressed_mem_cache_store.rb
masover-castronaut-0.4.4.5 vendor/activesupport/lib/active_support/cache/compressed_mem_cache_store.rb
masover-castronaut-0.5.0.1 vendor/activesupport/lib/active_support/cache/compressed_mem_cache_store.rb
relevance-castronaut-0.4.1 vendor/activesupport/lib/active_support/cache/compressed_mem_cache_store.rb
relevance-castronaut-0.4.2 vendor/activesupport/lib/active_support/cache/compressed_mem_cache_store.rb
relevance-castronaut-0.4.3 vendor/activesupport/lib/active_support/cache/compressed_mem_cache_store.rb
relevance-castronaut-0.4.4 vendor/activesupport/lib/active_support/cache/compressed_mem_cache_store.rb
relevance-castronaut-0.4.5 vendor/activesupport/lib/active_support/cache/compressed_mem_cache_store.rb
relevance-castronaut-0.4.6 vendor/activesupport/lib/active_support/cache/compressed_mem_cache_store.rb
relevance-castronaut-0.5.0 vendor/activesupport/lib/active_support/cache/compressed_mem_cache_store.rb
relevance-castronaut-0.5.1 vendor/activesupport/lib/active_support/cache/compressed_mem_cache_store.rb
relevance-castronaut-0.5.2 vendor/activesupport/lib/active_support/cache/compressed_mem_cache_store.rb
relevance-castronaut-0.5.3 vendor/activesupport/lib/active_support/cache/compressed_mem_cache_store.rb
relevance-castronaut-0.5.4 vendor/activesupport/lib/active_support/cache/compressed_mem_cache_store.rb
radiant-0.7.2 vendor/rails/activesupport/lib/active_support/cache/compressed_mem_cache_store.rb
activesupport-2.1.2 lib/active_support/cache/compressed_mem_cache_store.rb
activesupport-2.1.1 lib/active_support/cache/compressed_mem_cache_store.rb
radiant-0.7.0 vendor/rails/activesupport/lib/active_support/cache/compressed_mem_cache_store.rb
radiant-0.7.1 vendor/rails/activesupport/lib/active_support/cache/compressed_mem_cache_store.rb