Skip to content

Create: Caching data-structure #10

@DavidRaab

Description

@DavidRaab

I need a data-structure for caching. It should have the following behaviour.

  • Adding/Selecting something efficently by a key (very important).
  • Restricted by a maximum amount.
  • When something new is created that should be cached and there is not enough room, the oldest least requested element should be removed.
  • Whenever something is requested it's expire time should refresh.

How to build such a structure? Which algorithms to use?

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is neededquestionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions