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

Request for Caching Feedback #3501

Closed
BobaFetters opened this issue Jan 17, 2025 · 3 comments
Closed

Request for Caching Feedback #3501

BobaFetters opened this issue Jan 17, 2025 · 3 comments
Assignees
Labels

Comments

@BobaFetters
Copy link
Member

Hello all! The Apollo iOS Team has plans to do a significant rewrite of the caching system used in the library. While this feature is still a little ways off, the first step in this process is to gather feedback from you, the users of the library, about how you use caching in your applications, how you would like to use caching, and what features that entails.

The current high level features we have planned are:

  • Time to live (TTL) support on a per object and per field basis
  • Cache Eviction on a per object and per field basis
  • Improved faceted search
  • Cascading deletions

Your feedback is invaluable to us, so please share your thoughts with us. Once we feel we have gathered enough feedback we will take some time to review and discuss and then move into an RFC with more technical details which will be another opportunity for you to collaborate with us and share your feedback.

Thank you in advance for all the feedback!

@Reevn
Copy link

Reevn commented Feb 3, 2025

The high level features mentioned in the OP are exactly what we are looking for, exciting! Time to live support is without a doubt the most important one I can think of.

There are some other use cases I've encountered in the past which had no good solution. Some things on my wish list:

  • Better API to debug/observe cache changes during development to see if everything is cached as expected. Right now one has to use an SQLite (or other persistent) store in order to inspect how data is written to the cache
  • Ability to chain caches like in Apollo Kotlin. Even better would be more fine-grained control where one can selectively decide which operation should also be persisted to the disk cache vs in-memory cache
  • Ability to redirect (or pre-warm?) cache hits when query A already returned data that query B needs. Classical example is a query that gets a list of items and a second query gets exactly one item and that one item is already in the cache from the list query

@AnthonyMDev AnthonyMDev changed the title Caching Feedback RFC: Caching Feedback Feb 14, 2025
@AnthonyMDev AnthonyMDev changed the title RFC: Caching Feedback Caching Feedback Feb 14, 2025
@BobaFetters BobaFetters changed the title Caching Feedback Request for Caching Feedback Feb 14, 2025
@BobaFetters
Copy link
Member Author

Closing this to move forward into RFC phase

@BobaFetters BobaFetters unpinned this issue Mar 3, 2025
Copy link
Contributor

github-actions bot commented Mar 3, 2025

Do you have any feedback for the maintainers? Please tell us by taking a one-minute survey. Your responses will help us understand Apollo iOS usage and allow us to serve you better.

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

No branches or pull requests

2 participants