module ActiveSupport::Cache::MemoryStore::DupCoder

def dump_value(value)

def dump_value(value)
  if value.is_a?(String) && !value.start_with?(MARSHAL_SIGNATURE)
    value.dup
  else
    Marshal.dump(value)
  end
end