module ActiveSupport::Cache::MemoryStore::DupCoder

def dump_compressed(entry, threshold)

def dump_compressed(entry, threshold)
  compressed_entry = entry.compressed(threshold)
  compressed_entry.compressed? ? compressed_entry : dump(entry)
end