Skip to content

SQLite Cache Age and Eviction APIs #75

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

Closed
oliveeyay opened this issue Feb 26, 2021 · 1 comment
Closed

SQLite Cache Age and Eviction APIs #75

oliveeyay opened this issue Feb 26, 2021 · 1 comment
Milestone

Comments

@oliveeyay
Copy link

Without a proper Eviction API, SQLite caches can grow forever and take up a lot of space on the device, leading to unexpected situations and performances (no storage left, db slow to open/query etc...).

Usually, a good strategy for SQLite eviction is to remove entries that were written a long time ago (example: 10 days). For this to work, the write data needs to be stored with each record or row, and an Eviction API to be made available when building the SqlNormalizedCacheFactory.

@BoD BoD transferred this issue from apollographql/apollo-kotlin Dec 13, 2024
@BoD
Copy link
Collaborator

BoD commented Dec 18, 2024

This can be done in v0.0.5 with a combination of the Cache Control and Garbage Collection features.

@BoD BoD closed this as completed Dec 18, 2024
@BoD BoD modified the milestones: v0.0.4, v0.0.5 Dec 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants