Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement a counter to keep track of frequency of cache hits for an item in the cache, #3

Open
crypticminds opened this issue Feb 15, 2020 · 0 comments
Labels
beginner enhancement New feature or request good first issue Good for newcomers good for beginners Issue that is suitable for beginners help wanted Extra attention is needed

Comments

@crypticminds
Copy link
Collaborator

Is your feature request related to a problem? Please describe.

A cache should be able to prioritize which data must be evicted from the app memory to make room for new ones and one of the methods is to keep frequently used data in the app memory.

Describe the solution you'd like
A counter needs to be implemented that will keep track of how many times a key is requested from the cache.

Additional context
Every item that is stored in the cache has certain metadata attached to it like timeToLive, timestamp etc. An additional parameter needs to be added to this metadata which should be incremented every time the cache is requested for a particular key.

@crypticminds crypticminds added enhancement New feature or request help wanted Extra attention is needed good first issue Good for newcomers good for beginners Issue that is suitable for beginners labels Feb 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
beginner enhancement New feature or request good first issue Good for newcomers good for beginners Issue that is suitable for beginners help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

0 participants