Skip to content

feat: Allow min 30s cache TTL in miniflare KV plugin#11391

Merged
edmundhung merged 3 commits intocloudflare:mainfrom
pmiguel:pleal/kv-min-ttl-increase
Nov 28, 2025
Merged

feat: Allow min 30s cache TTL in miniflare KV plugin#11391
edmundhung merged 3 commits intocloudflare:mainfrom
pmiguel:pleal/kv-min-ttl-increase

Conversation

@pmiguel
Copy link
Copy Markdown
Contributor

@pmiguel pmiguel commented Nov 24, 2025

Fixes #KV-1904

Workers KV now supports setting a Cache TTL lower than the default of 60 seconds, down to 30 seconds of TTL. This change reflects that in Miniflare to allow for local dev.


@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Nov 24, 2025

🦋 Changeset detected

Latest commit: 56316ac

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new bot commented Nov 24, 2025

create-cloudflare

npm i https://pkg.pr.new/create-cloudflare@11391

@cloudflare/kv-asset-handler

npm i https://pkg.pr.new/@cloudflare/kv-asset-handler@11391

miniflare

npm i https://pkg.pr.new/miniflare@11391

@cloudflare/pages-shared

npm i https://pkg.pr.new/@cloudflare/pages-shared@11391

@cloudflare/unenv-preset

npm i https://pkg.pr.new/@cloudflare/unenv-preset@11391

@cloudflare/vite-plugin

npm i https://pkg.pr.new/@cloudflare/vite-plugin@11391

@cloudflare/vitest-pool-workers

npm i https://pkg.pr.new/@cloudflare/vitest-pool-workers@11391

@cloudflare/workers-editor-shared

npm i https://pkg.pr.new/@cloudflare/workers-editor-shared@11391

@cloudflare/workers-utils

npm i https://pkg.pr.new/@cloudflare/workers-utils@11391

wrangler

npm i https://pkg.pr.new/wrangler@11391

commit: 56316ac

@pmiguel pmiguel force-pushed the pleal/kv-min-ttl-increase branch from 2c251df to ae60003 Compare November 24, 2025 12:28
@github-project-automation github-project-automation bot moved this from Untriaged to Approved in workers-sdk Nov 24, 2025
@pmiguel pmiguel force-pushed the pleal/kv-min-ttl-increase branch 2 times, most recently from e6cf743 to 2909b82 Compare November 24, 2025 12:56
@ferhatelmas
Copy link
Copy Markdown
Contributor

Title sounds a bit verbose, just a suggestion:

- feat: Change Miniflare to allow lower than 60 seconds cache TTL in the KV plugin
+ feat: Allow min 30s cache TTL in miniflare KV plugin

@pmiguel pmiguel changed the title feat: Change Miniflare to allow lower than 60 seconds cache TTL in the KV plugin feat: Allow min 30s cache TTL in miniflare KV plugin Nov 24, 2025
@pmiguel pmiguel marked this pull request as ready for review November 27, 2025 10:28
@pmiguel pmiguel requested review from a team as code owners November 27, 2025 10:28
@edmundhung edmundhung force-pushed the pleal/kv-min-ttl-increase branch from ce90b1d to adb8569 Compare November 27, 2025 13:26
@edmundhung edmundhung force-pushed the pleal/kv-min-ttl-increase branch from adb8569 to 56316ac Compare November 28, 2025 11:37
@edmundhung edmundhung merged commit 5e937c1 into cloudflare:main Nov 28, 2025
27 checks passed
@github-project-automation github-project-automation bot moved this from Approved to Done in workers-sdk Nov 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

5 participants