Skip to content

Auto-population for KV #538

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
james-elicx opened this issue Apr 7, 2025 · 0 comments · Fixed by #546
Closed

Auto-population for KV #538

james-elicx opened this issue Apr 7, 2025 · 0 comments · Fixed by #546
Assignees

Comments

@james-elicx
Copy link
Collaborator

james-elicx commented Apr 7, 2025

We need to migrate the KV adapter to populate the KV namespace instead of relying on static assets as a fallback. This also unlocks being able to use TTL for KV properly.

A few more things we would tackle while updating the cache handlers:

  • debug in R2 should be enable when process.env.NEXT_PRIVATE_DEBUG_CACHE === 1 (see KV)
  • the handler and the the populate cache should share constants instead of repeating magic strings in different files
  • we can now assume that process.env and the bindings are available in the ctor and do not need to be lazily retrieved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging a pull request may close this issue.

1 participant