Parent

Methods

Class/Module Index [+]

Quicksearch

ActiveSupport::Cache::CompressedMemCacheStore

Public Instance Methods

read(name, options = nil) click to toggle source
# File lib/active_support/cache/compressed_mem_cache_store.rb, line 4
def read(name, options = nil)
  if value = super(name, (options || {}).merge(:raw => true))
    if raw?(options)
      value
    else
      Marshal.load(ActiveSupport::Gzip.decompress(value))
    end
  end
end
write(name, value, options = nil) click to toggle source
# File lib/active_support/cache/compressed_mem_cache_store.rb, line 14
def write(name, value, options = nil)
  value = ActiveSupport::Gzip.compress(Marshal.dump(value)) unless raw?(options)
  super(name, value, (options || {}).merge(:raw => true))
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.