Skip to content

Plans to support maximum size and cleanup of expired entries #56

@olivr70

Description

@olivr70

Hi,

as keyv is a very strong proposition for implementing a cache, are there any plans to :

  • support setting a maximum size, which would trigger eviction of oldest keys
  • support a simple cleanup of expired keys

or may be those have been ruled for simplicity ? in that case, it feels like at least a way to iterate on keys would allow for a wrapper to implement periodic cleanup. If mimicking Map, this could mean implementing keys() as returning an Iterable

The trouble being it needs to be implmented in all stores.

Anyway, your work is very elegant and promising.

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