Skip to content

No Writerside info on creating your own Codec<T> Implementation #146

@robertjamison

Description

@robertjamison

When using the KStore Storage library, you have to initialize your KStore with some similar boilerplate code below:

val myStore = KStore<MyKstoreClass> = storeOf(
    codec = Codec<Any>,
    default = MyKstoreClass(),
    enableCache = true
)

This is very different from Android, iOS, and Desktop implementations. When you review the walkthrough documentation, there is almost no mention of how to implement this approach.

While Json is provided as a default, I recommend adding an example of creating your own Codec, like Protobuf or Cbor.

EDIT: Made the recommendation and issue title less vague

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions