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

Initial Implementation #2

Open
Tracked by #1
nathanclevenger opened this issue Jan 5, 2023 · 0 comments
Open
Tracked by #1

Initial Implementation #2

nathanclevenger opened this issue Jan 5, 2023 · 0 comments
Assignees

Comments

@nathanclevenger
Copy link
Member

nathanclevenger commented Jan 5, 2023

This should be similar to kv.caches.do but having no TTL ... there are certain data sources which might be very slow and/or expensive, and we want to support an interface of https://keyv.do/:url like https://keyv.do/json.fyi/northwind.json

where the logic is:

  1. Check KV if the URL as key exists
  2. If key exists, return value
  3. If key does not exist, fetch value from url
  4. Save value to key with ctx.waitUntil with no TTL
  5. Return value
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