Cloudflare Developers

CD

Cloudflare Developers

Welcome to the official Cloudflare Developers server. Here you can ask for help and stay updated with the latest news

Join

I'm running a worker locally (`wrangler

I'm running a worker locally (wrangler dev) and trying to access some KV keys I've set using wrangler kv key put ... --local <key> <value> but my <kvnamespace>.get in my worker always returns null. I tried listing them from the worker too, and there's no keys at all. Listing them with "kv key list --local" tells me they are there. I can also read them with kv key get. Any suggestions on where I should start to dig to figure it out?

In the kv docs /getting-started

In the kv docs /getting-started I can't get this command to work: npx wrangler kv key put --binding=<BINDING_NAME> "<KEY>" "<VALUE>"...
No description

Renaming KV namespaces

I remember that it could be renamed in the past but now it seems not to work anymore

@thomasgauvin really awesome view and

@thomasgauvin really awesome view and great information source. One thing that I noticed is that if KV is big it doesn't show KV count

List keys | Cloudflare Workers KV

Hi all, when I am using list method and cursor for pagination (https://developers.cloudflare.com/kv/api/list-keys/#list-method). What happens if I have 1 milion keys and when I get a page I trigger delete of that keys and then use cursor to go to the second page? Would cursor have an old list so it will continue serving correct pages even though that I am deleting keys in the background?

For the first time I got the message "

For the first time I got the message "Daily request limit exceeded for Cloudflare Workers" This worker have an average (and pretty stable) of 250/350 writes every day, and I just checked on the dashboard without seeing anything strange. How should I best proceed? Thank you!...

Hello

Hello I frequently encounter code 971 issues while using KV. Could you please clarify what specific limitation this refers to? How can I adjust to reduce the occurrence of this problem?​⬤...

basically I want to have an integer in

basically I want to have an integer in d1 be incremented on each request to a specific endpoint, would it be possible to use kv to temporarily store how much needs to be added and then add it on a schedule? if so would that globally work since kv is local on the machine to my knowledge?

Hi there!

Hi there! When keys are removed due to TTL expiration using the expirationTtl option, do those removals count toward the delete request quota ? Thanks!...

I figured it out by reading throught the

I figured it out by reading throught the plugins docs it these ones should be updated to include you need to process like this ```export default eventHandler(async (event) => { const { ARCKV } = event.context.cloudflare.env; ...

Unknown KV usage origin

Guys, the problem still exists, I've deleted KV, but due to GraphQL Api, the counter continue to increase.. { "dimensions": { "namespaceId": "00000000000000000000000000000000" },...

The above question I think I found the

The above question I think I found the answer as API's appear to be limited to 1200 requests/5 minutes for basically any API on cloudflare.

Has expiration_ttl now gone from the V4

Has expiration_ttl now gone from the V4 API (for a KV write with metadata). I can only see it in the OpenAPI spec comment and it doesn't seem to work in practice anymore.

I'm using Cloudflare Pages with KV.

I'm using Cloudflare Pages with KV. My goal is to set up KV for different environments, to have: 1. one KV id for production, and 2. another KV id for all other environments (preview URLs, local dev with miniflare maybe, etc)...

How do you modify every KV entry without

How do you modify every KV entry without being ratelimited? "Error: Too many API requests by single worker invocation."...

Yeah so I had a line that looked like

Yeah so I had a line that looked like this to test (and I'm aware I believe just putting overwrites but I was testing something iirc): ```js await env.<namespace>.delete(<item>) await env.<namespace>.put(<item>)...

Hey, I am seeing some pretty horrendous

Hey, I am seeing some pretty horrendous latencies using workers with KV, requests to get a 3.6MB value are taking up to 10 seconds at times, this is from a london IP and the KV was created by me from an IP in the UK too. Not sure why sometimes the latencies are so bad, I was using this to speed up a bunch of queries that we would usually make to R2 as range requests, but it appears sometimes KV is substantially slower? Any ideas what could be going on here?

KV vs DO for link shortening

Ok thanks. Every request activates for 30s, if I understand correctly. Makes sense. Then after reading through the docs I can see that the recommendationis to not use single global objects, so I think "object per link entity" would be the way to go here. I still struggle to wrap my head around why/how Durable Objects are the best fit for this use case. They're certainly cool and powerful, but I don't really need all the extra guarantees. All I'd really need is a bit of a narrower windows for eve...

yea I would check the other limits:

yea I would check the other limits: https://developers.cloudflare.com/kv/platform/pricing/, you only get 1,000 List reqs/day