8000 feat(kv): add support for ttl by atinux · Pull Request #265 · nuxt-hub/core · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

feat(kv): add support for ttl #265

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

Merged
merged 4 commits into from
Sep 6, 2024
Merged

feat(kv): add support for ttl #265

merged 4 commits into from
Sep 6, 2024

Conversation

atinux
Copy link
Contributor
@atinux atinux commented Sep 6, 2024

We can now specify the ttl for expiring keys:

await hubKV('hello', 'stays-60-seconds', { ttl: 60 })

resolves #140

Copy link
cloudflare-workers-and-pages bot commented Sep 6, 2024

Deploying nuxthub-docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: dee8f34
Status: ✅  Deploy successful!
Preview URL: https://1db39d9f.nuxthub-module.pages.dev
Branch Preview URL: https://kv-ttl.nuxthub-module.pages.dev

View logs

Copy link
pkg-pr-new bot commented Sep 6, 2024

Open in Stackblitz

pnpm add https://pkg.pr.new/nuxt-hub/core/@nuxthub/core@265

commit: dee8f34

@atinux atinux merged commit f724bec into main Sep 6, 2024
6 checks passed
@atinux atinux deleted the kv-ttl branch September 6, 2024 16:23
@adamdehaven
Copy link

🎉 yes! looking forward to integrating the ttl

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

Successfully merging this pull request may close these issues.

Adopt unstorage Cloudflare KV expiring keys
2 participants
0