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:
  retval = super
  if options[:raw] && local_cache && retval
    raw_entry = Entry.new(entry.value.to_s)
    raw_entry.expires_at = entry.expires_at
    local_cache.write_entry(key, raw_entry, options)
  end
  retval
end