workers-help
pages-help
general-help
durable-objects
workers-discussions
pages-discussions
wrangler
coding-help
kv
🦀rust-on-workers
miniflare
stream
general-discussions
functions
zaraz
âš¡instant-logs
email-routing
r2
pubsub-beta
analytics-engine
d1-database
queues
workers-for-platforms
workerd
web3
🤖turnstile
radar
web-research
logs-engine
cloudflare-go
terraform-provider-cloudflare
workers-ai
browser-rendering-api
analytics
next-on-pages
cloudflare-ai
build-caching-beta
hyperdrive
vectorize
ai-gateway
python-workers-beta
vitest-integration-beta
workers-observability
workflows-beta
The above question I think I found the
Has expiration_ttl now gone from the V4
I'm using Cloudflare Pages with KV.
How do you modify every KV entry without
Yeah so I had a line that looked like
Hey, I am seeing some pretty horrendous
KV vs DO for link shortening
yea I would check the other limits:
https://developers.cloudflare.com/
kv is really slow to propagate when i
I’ve been noticing that my get requests
Workers KV bulk reads
Im needing some help with kv fetching. I
cacheTtl
and kvCacheTtl
to be high for low latency, but I dont want to have to wait for kvCacheTtl
to expire to fetch th...Is there a way to deal with the
anyone can help me underestand one point
Yikes, that's really disappointing.
You can't configure the KV origins. As
You're quite close!
KV = "TEST"
assigns the string to the KV variable, instead of the KV namespace. In the old service worker syntax, removing this line would've been your solution, as bindings were global variables. In module workers (ones with export default
), they are available on the env
variable which is the second parameter of your fetch
function in line 4, so on line 5 and 6 you should change it to env.KV.put
and env.KV.get
.
- You'll need to actually bind your worker to this KV namespace you created, which in the dashboard you can do by clicking on Workers & Pages, selecting your worker, clicking on the Settings tab, and scrolling down to KV Namespace bindings. There, you'll need to select the KV namespace you created (Edit Variables, Add binding) and give it a name that it will be made available as (KV
in the example).
Saving it should create a new deployment where the namespace you selected is available as env.KV