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

docs: kv, db, and cache updates #454

Merged
merged 11 commits into from
Feb 3, 2025
Merged

docs: kv, db, and cache updates #454

merged 11 commits into from
Feb 3, 2025

Conversation

mattmaribojoc
Copy link
Collaborator

  • Adds sections to the KV, DB, and Cache docs that add context for common use cases/questions. This info is spread throughout Cloudflare/Nitro/Unstorage docs - so to smooth the learning pathway, porting some of that information here would help
  • Adds Pricing sections to each page of the features docs (where applicable)
  • Reorders KV page headings to follow the ## hubFeature() and ### binding.fn() format

Documentation for:

  • Differences between KV and DB consistency model
  • Page level caching with nitro.routeRules
  • Nitro Caching defaults to swr and must be passed swr: false for expired values to be removed from cache storage
  • Creating a table through DB migrations
  • JSON queries through the D1 client

Example of per-page pricing information
image

@mattmaribojoc mattmaribojoc requested a review from atinux January 31, 2025 23:06
Copy link

pkg-pr-new bot commented Jan 31, 2025

Open in Stackblitz

npm i https://pkg.pr.new/nuxt-hub/core/@nuxthub/core@454

commit: 592aaa1

Copy link

cloudflare-workers-and-pages bot commented Feb 3, 2025

Deploying playground with  Cloudflare Pages  Cloudflare Pages

Latest commit: 592aaa1
Status:⚡️  Build in progress...

View logs

Copy link

cloudflare-workers-and-pages bot commented Feb 3, 2025

Deploying nuxthub-docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: 6046e59
Status: ✅  Deploy successful!
Preview URL: https://af9fd533.nuxthub-module.pages.dev
Branch Preview URL: https://docs-updates.nuxthub-module.pages.dev

View logs

@atinux atinux merged commit 7e5c739 into main Feb 3, 2025
5 of 8 checks passed
@atinux atinux deleted the docs/updates branch February 3, 2025 16:45
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.

2 participants