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

Included in:
Rails61Coder, Rails70Coder
Defined in:
lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/activesupport-7.0.4/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/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/activesupport-7.0.4/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