Module: ActiveSupport::Cache::SerializerWithFallback::Marshal71WithFallback
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 125"\x04\x08".b.freeze
Instance Method Summary
Instance Method Details
#_load(dumped)
[ GitHub ]# File 'activesupport/lib/active_support/cache/serializer_with_fallback.rb', line 131
def _load(dumped) marshal_load(dumped) end
#dump(value)
[ GitHub ]# File 'activesupport/lib/active_support/cache/serializer_with_fallback.rb', line 127
def dump(value) Marshal.dump(value) end
#dumped?(dumped) ⇒ Boolean
# File 'activesupport/lib/active_support/cache/serializer_with_fallback.rb', line 135
def dumped?(dumped) dumped.start_with?(MARSHAL_SIGNATURE) end