epam / CoroutinesCache

In mobile development exists solution for caching with RxJava usage, but there is no solutions for Kotlin Coroutines. The project is to provide this functionality to mobile community.
Apache License 2.0
162 stars 7 forks source link

Ask for serialization type explicitly #11

Closed vvsevolodovich closed 5 years ago

vvsevolodovich commented 5 years ago

Instead of trying to figure out data type during serialization/deserialization I suggest to just ask user this infromation. E.g. why not to do @ProviderKey("TestKey", "Bitmap::class")? With this approach you don't need reflection and can just immediately retrieve correct serializer/deserializer.

Dartlexx commented 5 years ago

Shouldn't the issue be closed?