module ActiveSupport::Cache::MemoryStore::DupCoder

def dump(entry)

def dump(entry)
  if entry.value && entry.value != true && !entry.value.is_a?(Numeric)
    Cache::Entry.new(dump_value(entry.value), expires_at: entry.expires_at, version: entry.version)
  else
    entry
  end
end