方法
包含模块
常量
MARSHAL_SIGNATURE | = | "\x04\x08".b.freeze |
实例公共方法
_load(dumped) 链接
源代码: 显示 | 在GitHub上查看
# File activesupport/lib/active_support/cache/serializer_with_fallback.rb, line 109 def _load(dumped) marshal_load(dumped) end
dump(value) 链接
源代码: 显示 | 在GitHub上查看
# File activesupport/lib/active_support/cache/serializer_with_fallback.rb, line 105 def dump(value) Marshal.dump(value) end
dumped?(dumped) 链接
源代码: 显示 | 在GitHub上查看
# File activesupport/lib/active_support/cache/serializer_with_fallback.rb, line 113 def dumped?(dumped) dumped.start_with?(MARSHAL_SIGNATURE) end