123456789_123456789_123456789_123456789_123456789_

Module: ActiveSupport::Cache::SerializerWithFallback::Marshal61WithFallback

Constant Summary

Instance Method Summary

Instance Method Details

#_load(payload)

Alias for ActiveSupport::Cache::SerializerWithFallback#marshal_load.

[ GitHub ]

  
# 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

[ GitHub ]

  
# File 'activesupport/lib/active_support/cache/serializer_with_fallback.rb', line 83

def dumped?(dumped)
  dumped.start_with?(MARSHAL_SIGNATURE)
end