What is `value` in this case?  Based on the issue this is supposed to fix, it sounds like `value` is a Hash, which doesn't implement `dump`.  Do you actually want `coder.dump`?

This also seems like it might be the wrong place to do this.  Isn't `record_from_coder` used when deserializing the cached record?  Doing serialization during deserialization seems wrong.  Perhaps the record serialization should be fixed instead.