Module: ActiveSupport::Cache::SerializerWithFallback::MessagePackWithFallback
- Extended by:
- MessagePackWithFallback
- Included in:
- MessagePackWithFallback
- Defined in:
- lib/active_support/cache/serializer_with_fallback.rb
Instance Method Summary collapse
Methods included from ActiveSupport::Cache::SerializerWithFallback
Instance Method Details
#_load(dumped) ⇒ Object
126 127 128 |
# File 'lib/active_support/cache/serializer_with_fallback.rb', line 126 def _load(dumped) ActiveSupport::MessagePack::CacheSerializer.load(dumped) end |
#dump(value) ⇒ Object
122 123 124 |
# File 'lib/active_support/cache/serializer_with_fallback.rb', line 122 def dump(value) ActiveSupport::MessagePack::CacheSerializer.dump(value) end |
#dumped?(dumped) ⇒ Boolean
130 131 132 |
# File 'lib/active_support/cache/serializer_with_fallback.rb', line 130 def dumped?(dumped) available? && ActiveSupport::MessagePack.signature?(dumped) end |