Skip to content

Need to serialize/deserialize the cache #49

@Stargateur

Description

@Stargateur

I need to serialize the cache:

  1. There is currently no way to iterate with Cached trait
  2. Without GATs I don't think we could have an associate Iter type on Cached, maybe it's possible I don't known
  3. We could implement Serialize/Deserialize from serde for CachedSized & Co, this require some work and have some cons but this could allow to keep time(not very useful for timed cache) and order information.
  4. We could add a method in Cached to return an HashMap of Cache consuming self, not all implementation could do it without allocate a new hashmap and we lost information about time or order.

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