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
148 149 150 |
# File 'lib/active_support/cache/serializer_with_fallback.rb', line 148 def _load(dumped) ActiveSupport::MessagePack::CacheSerializer.load(dumped) end |
#dump(value) ⇒ Object
144 145 146 |
# File 'lib/active_support/cache/serializer_with_fallback.rb', line 144 def dump(value) ActiveSupport::MessagePack::CacheSerializer.dump(value) end |
#dumped?(dumped) ⇒ Boolean
152 153 154 |
# File 'lib/active_support/cache/serializer_with_fallback.rb', line 152 def dumped?(dumped) available? && ActiveSupport::MessagePack.signature?(dumped) end |