Module: ActiveSupport::Cache::SerializerWithFallback::Marshal61WithFallback
Relationships & Source Files | |
Defined in: | activesupport/lib/active_support/cache/serializer_with_fallback.rb |
Constant Summary
-
MARSHAL_SIGNATURE =
# File 'activesupport/lib/active_support/cache/serializer_with_fallback.rb', line 70"\x04\x08".b.freeze
Instance Method Summary
-
#_load(payload)
Alias for #marshal_load.
- #dump(entry)
- #dump_compressed(entry, threshold)
- #dumped?(dumped) ⇒ Boolean
Instance Method Details
#_load(payload)
Alias for ActiveSupport::Cache::SerializerWithFallback#marshal_load.
# File 'activesupport/lib/active_support/cache/serializer_with_fallback.rb', line 80
alias_method :_load, :marshal_load
#dump(entry)
[ GitHub ]# File 'activesupport/lib/active_support/cache/serializer_with_fallback.rb', line 72
def dump(entry) Marshal.dump(entry) end
#dump_compressed(entry, threshold)
[ GitHub ]# File 'activesupport/lib/active_support/cache/serializer_with_fallback.rb', line 76
def dump_compressed(entry, threshold) Marshal.dump(entry.compressed(threshold)) end
#dumped?(dumped) ⇒ Boolean
# File 'activesupport/lib/active_support/cache/serializer_with_fallback.rb', line 83
def dumped?(dumped) dumped.start_with?(MARSHAL_SIGNATURE) end