module ActiveSupport::Cache::MemoryStore::DupCoder

def dump(entry)

def dump(entry)
  entry.dup_value! unless entry.compressed?
  entry
end

def dump_compressed(entry, threshold)

def dump_compressed(entry, threshold)
  entry = entry.compressed(threshold)
  entry.dup_value! unless entry.compressed?
  entry
end

def load(entry)

def load(entry)
  entry = entry.dup
  entry.dup_value!
  entry
end