YapDatabase
YapDatabase copied to clipboard
registerDefaultSerializer registers metadata serializer as well
The YapDatabase.registerDefaultSerializer() and YapDatabase.registerDefaultDeserializer() functions both register the object serializer/deserializer and the metadata serializer/deserializer despite the fact that the documentation states that they only register the object serializer/deserializer.
I'm not sure what the best behaviour would be. Existing code may depend on this functionality, so perhaps the documentation should just be updated to reflect reality. But there is no way to set (or clear) the default metadata serializer/deserializer.
For us the workaround is to not use the default and just explicitly configure the serializer/deserializer for each collection.