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):
await env.<namespace>.delete(<item>)
await env.<namespace>.put(<item>)
await env.<namespace>.delete(<item>)
await env.<namespace>.put(<item>)
which: - showed the key as deleted in the CF dashboard - did not run the put according to the dashboard - key is still retrievable
2 Replies
thomasgauvin
thomasgauvin4mo ago
Deletes & writes are both considered writes to the KV key, and there's a max of 1 write per key per second, might you also be encountering this issue? https://developers.cloudflare.com/kv/platform/limits/
Cloudflare Docs
Limits · Cloudflare Workers KV
To request an increase to a limit, complete the Limit Increase Request Form . If the limit can be increased, Cloudflare will contact you with next …
thomasgauvin
thomasgauvin4mo ago
Also, how are you testing this? Are you checking the worker that is deployed, or checking locally? And if so, are they pointing to the same KV namespace?
Want results from more Discord servers?
Add your server