Module: ActiveSupport::Cache::Coders

Defined in:
activesupport/lib/active_support/cache.rb

Overview

:nodoc:

Defined Under Namespace

Modules: Loader, Rails61Coder, Rails70Coder

Constant Summary collapse

MARK_61 =

The one set by Marshal.

"\x04\b".b.freeze
MARK_70_UNCOMPRESSED =
"\x00".b.freeze
MARK_70_COMPRESSED =
"\x01".b.freeze

Class Method Summary collapse

Class Method Details

.[](version) ⇒ Object



937
938
939
940
941
942
943
944
945
946
# File 'activesupport/lib/active_support/cache.rb', line 937

def [](version)
  case version
  when 6.1
    Rails61Coder
  when 7.0
    Rails70Coder
  else
    raise ArgumentError, "Unknown ActiveSupport::Cache.format_version: #{Cache.format_version.inspect}"
  end
end