Module: ActiveSupport::Cache::Coders::Rails61Coder

Extended by:
Rails61Coder
Includes:
Loader
Included in:
Rails61Coder
Defined in:
activesupport/lib/active_support/cache.rb

Instance Method Summary collapse

Methods included from Loader

#load

Instance Method Details

#dump(entry) ⇒ Object



976
977
978
# File 'activesupport/lib/active_support/cache.rb', line 976

def dump(entry)
  Marshal.dump(entry)
end

#dump_compressed(entry, threshold) ⇒ Object



980
981
982
# File 'activesupport/lib/active_support/cache.rb', line 980

def dump_compressed(entry, threshold)
  Marshal.dump(entry.compressed(threshold))
end