Module: ActiveSupport::Cache::MemoryStore::DupCoder

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

Overview

:nodoc:

Class Method Summary collapse

Class Method Details

.dump(entry) ⇒ Object



35
36
37
38
# File 'lib/active_support/cache/memory_store.rb', line 35

def dump(entry)
  entry.dup_value!
  entry
end

.load(entry) ⇒ Object



29
30
31
32
33
# File 'lib/active_support/cache/memory_store.rb', line 29

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