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

Extended by:
Rails61Coder
Includes:
Loader
Included in:
Rails61Coder
Defined in:
lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/activesupport-7.0.4/lib/active_support/cache.rb

Instance Method Summary collapse

Methods included from Loader

#load

Instance Method Details

#dump(entry) ⇒ Object



878
879
880
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/activesupport-7.0.4/lib/active_support/cache.rb', line 878

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

#dump_compressed(entry, threshold) ⇒ Object



882
883
884
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/activesupport-7.0.4/lib/active_support/cache.rb', line 882

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