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

Deletion stale cache values to mitigate cache size issues #16

Open
madpin opened this issue Nov 1, 2019 · 2 comments
Open

Deletion stale cache values to mitigate cache size issues #16

madpin opened this issue Nov 1, 2019 · 2 comments

Comments

@madpin
Copy link

madpin commented Nov 1, 2019

Well, my use case is:
I have a function that queries the database, the input is the database alias and the query.
It's working great, but I just saw that the cache size will grow indefinitely, right?
My idea was to keep track of the stale date, and check for all elements of the object if any was already "staled", and delete it.
Just to keep the filesize at a minimum.

I never worked with Classes like this project, but I can try something.

What do you think?
I'm using it wrong?

@shaypal5
Copy link
Collaborator

shaypal5 commented Dec 3, 2019

Sounds like a great enhancement! Go for it!
I'll be here to help. :)

@shaypal5 shaypal5 changed the title Deletation of a cache after stale date. Deletion stale cache values to mitigate cache size issues Feb 13, 2024
@gdumanoir
Copy link

Hello,
I have the same problematic : after a few months of using cachier for caching authent tokens, the cache file takes more than 100MB.
Currently I delete regularly the cache file in order to stay with a small file size...
Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants