Methods
Included Modules
Constants
MARSHAL_SIGNATURE | = | "\x04\x08".b.freeze |
Instance Public methods
dump(entry)
📝 Source code
# File activesupport/lib/active_support/cache/serializer_with_fallback.rb, line 72
def dump(entry)
Marshal.dump(entry)
end
🔎 See on GitHub
dump_compressed(entry, threshold)
📝 Source code
# File activesupport/lib/active_support/cache/serializer_with_fallback.rb, line 76
def dump_compressed(entry, threshold)
Marshal.dump(entry.compressed(threshold))
end
🔎 See on GitHub
dumped?(dumped)
📝 Source code
# File activesupport/lib/active_support/cache/serializer_with_fallback.rb, line 83
def dumped?(dumped)
dumped.start_with?(MARSHAL_SIGNATURE)
end
🔎 See on GitHub