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