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

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

Instance Method Summary collapse

Instance Method Details

#load(payload) ⇒ Object



200
201
202
203
204
205
206
# File 'lib/active_support/cache/mem_cache_store.rb', line 200

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