3 class CompressedMemCacheStore
< MemCacheStore
4 def read(name
, options
= nil)
5 if value
= super(name
, (options
|| {}).merge(:raw => true))
9 Marshal
.load(ActiveSupport
::Gzip.decompress(value
))
14 def write(name
, value
, options
= nil)
15 value
= ActiveSupport
::Gzip.compress(Marshal
.dump(value
)) unless raw
?(options
)
16 super(name
, value
, (options
|| {}).merge(:raw => true))