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



233
234
235
236
237
238
239
# File 'activesupport/lib/active_support/cache/mem_cache_store.rb', line 233

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