Module: ActiveSupport::Cache::SerializerWithFallback::Marshal61WithFallback
- Extended by:
- Marshal61WithFallback
- Included in:
- Marshal61WithFallback
- Defined in:
- lib/active_support/cache/serializer_with_fallback.rb
Constant Summary collapse
- MARSHAL_SIGNATURE =
"\x04\x08".b.freeze
Instance Method Summary collapse
Methods included from ActiveSupport::Cache::SerializerWithFallback
Instance Method Details
#dump(entry) ⇒ Object
72 73 74 |
# File 'lib/active_support/cache/serializer_with_fallback.rb', line 72 def dump(entry) Marshal.dump(entry) end |
#dump_compressed(entry, threshold) ⇒ Object
76 77 78 |
# File 'lib/active_support/cache/serializer_with_fallback.rb', line 76 def dump_compressed(entry, threshold) Marshal.dump(entry.compressed(threshold)) end |
#dumped?(dumped) ⇒ Boolean
83 84 85 |
# File 'lib/active_support/cache/serializer_with_fallback.rb', line 83 def dumped?(dumped) dumped.start_with?(MARSHAL_SIGNATURE) end |