方法
包含的模块
常量
MARSHAL_SIGNATURE | = | "\x04\x08".b.freeze |
实例公共方法
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) 链接
源代码: 显示 | 在 GitHub 上
# File activesupport/lib/active_support/cache/serializer_with_fallback.rb, line 83 def dumped?(dumped) dumped.start_with?(MARSHAL_SIGNATURE) end