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



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

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