module ActiveSupport::Cache::MemCacheStore::LocalCacheWithRaw

def read_entry(key, options)

def read_entry(key, options)
  entry = super
  if options[:raw] && local_cache && entry
    entry = deserialize_entry(entry.value)
  end
  entry
end

def write_entry(key, entry, options) # :nodoc:

:nodoc:
def write_entry(key, entry, options) # :nodoc:
  if options[:raw] && local_cache
    raw_entry = Entry.new(entry.value.to_s)
    raw_entry.expires_at = entry.expires_at
    super(key, raw_entry, options)
  else
    super
  end
end