Method: ActiveSupport::Cache::MemoryStore::DupCoder#load

Defined in:
lib/active_support/cache/memory_store.rb

#load(entry) ⇒ Object



45
46
47
48
49
50
51
# File 'lib/active_support/cache/memory_store.rb', line 45

def load(entry)
  if !entry.compressed? && entry.value.is_a?(String)
    Cache::Entry.new(load_value(entry.value), expires_at: entry.expires_at, version: entry.version)
  else
    entry
  end
end