how can I delete a key ? I just saw in the doc the method put and get

how can I delete a key ? I just saw in the doc the method put and get
18 Replies
pat me
pat me2w ago
i have 2 questions, full disclosure: i don't understand back end infrastructure too well 1# is kv as secure as d1? like can i store emails as keys on it? is that a good idea?? or will ANYONE be able to retrieve that info? the docs seem to imply it's fairly secure i think 2# how quick are updates if i write into kv? will that happen under 30 mins and be reflected everywhere? if info about my use case is needed, i want to store a list of digital item's urls or ids (which i will fetch with ajax on client side) stored as "email (who purchased) : json (nested list of items purchased)" originally i thought user sign in sign up would be neat but i don't want the responsibility of storing passwords or anything for something as simple as "hey did the user purchase this product fully?", specially because payments will be handled face to face, not digitally and i will have to input emails and purchase list by hand anyway. i think getting email from google sign in or something then fetching the key : value pair seems reasonable and simple to me
Walshy
Walshy2w ago
1. No one can ever read another persons resources without explicitly being allowed by that person So, no. No one can read your KV unless you explicitly create like an API for them to do so 2. It takes up to 60 seconds for new values to be reflected
pat me
pat me2w ago
thanks!
Isaac McFadyen
By #1 the caveat is that KV values can be viewed on the dashboard, but as Walshy said, they'd need access to your Cloudflare account to do that.
pat me
pat me2w ago
as long as it's not publicly available like static websites, that's all good yes thanks
1.1.1.1
1.1.1.16d ago
DNS over Discord: GitHub
View the DNS over Discord source code on GitHub at https://dns-over-discord.v4.wtf/github
Bao N.
Bao N.5d ago
is this too much for KV read ops? data is a json 30KB
No description
Bao N.
Bao N.5d ago
testing after read: https://blog.cloudflare.com/faster-workers-kv/ this is string value of 1KB. That's a lots
No description
1984 Ford Laser
Yeah that's abnormal I was skeptical till you sent that second image lol
Bao N.
Bao N.5d ago
and mixed-data Never reach any lower than 100ms
No description
1984 Ford Laser
Where's your nearest PoP?
Bao N.
Bao N.5d ago
all requests (chart) come from around the world My local dev is near Singapore (SIN)
1984 Ford Laser
Okay cool so not localised, absolutely abnormal
Bao N.
Bao N.5d ago
I admit that more a half are cold reads, but compare to … CDN cache read? That’s too much for KV
1984 Ford Laser
Even my cold reads have never been higher than 300 or so
Bao N.
Bao N.5d ago
Unknown User
Unknown User5d ago
Message Not Public
Sign In & Join Server To View
pat me
pat me2d ago
how do i set the expiry "since modified"? (for a key using put)
or after a certain amount of time has passed since the key was last modified.
https://developers.cloudflare.com/kv/api/write-key-value-pairs/ all i see is expiry at a fixed time since epoch and expiry in seconds from now
Want results from more Discord servers?
Add your server