Module: ActiveSupport::Cache::MemCacheStore::Coders::Loader

Included in:
Rails61Coder, Rails70Coder
Defined in:
activesupport/lib/active_support/cache/mem_cache_store.rb

Instance Method Summary collapse

Instance Method Details

#load(payload) ⇒ Object


185
186
187
188
189
190
191
# File 'activesupport/lib/active_support/cache/mem_cache_store.rb', line 185

def load(payload)
  if payload.is_a?(Entry)
    payload
  else
    Cache::Coders::Loader.load(payload)
  end
end