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

feat: public API to support cache insert/remove operations #8454

Merged
merged 7 commits into from
Mar 11, 2023

Conversation

runspired
Copy link
Contributor

@runspired runspired commented Mar 11, 2023

Resolves blockers for Implementing cache.put and the broader Cache V2 Spec.

The Cache v2 RFC will need to be updated with this addition.

One thing this surfaced that isn't great is that our cache implementation needs a small bit of knowledge of loading state; however, I suspect this need will vanish once v2 is fully implemented as the cache will have a clearer picture of when a push is an update vs an insert. Today various things mean the __peek lies to us in our implementation.

With this change the importance of cache implementations getting their notifications story correct becomes paramount. We may need to dedupe and buffer notifications in the subscription service to prevent push based reactivity systems from being overly churned.

@runspired runspired added 🎯 canary PR is targeting canary (default) 🏷️ feat This PR introduces a new feature labels Mar 11, 2023
@runspired runspired marked this pull request as ready for review March 11, 2023 07:53
@runspired runspired merged commit 680b4a0 into master Mar 11, 2023
@delete-merged-branch delete-merged-branch bot deleted the feat-notifications branch March 11, 2023 07:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🎯 canary PR is targeting canary (default) 🏷️ feat This PR introduces a new feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant