deploy_feedback icon indicating copy to clipboard operation
deploy_feedback copied to clipboard

[KV Feedback]: Check for keys existence without values

Open kewp opened this issue 7 months ago • 1 comments

🔍

  • [ ] Did you search for existing issues?

Type of feedback

Feature request

Description

I'm trying to keep a cache fresh without using up my KV reads. Right now whenever I use get or list I get the value as well which uses up my read quota. Would be great if I could just see if the key(s) are there.

Steps to reproduce (if applicable)

No response

Expected behavior (if applicable)

No response

Possible solution (if applicable)

No response

Additional context

No response

kewp avatar Dec 07 '23 09:12 kewp

I've thought of a solution to this issue in the interim, for anyone coming here - hashing. What I can do is hash the contents, the value, of the kv store, and then I can just check the hash if the contents have changed (i.e. save the hash in another key, so each value in kv is paired with a hash). Before I was just letting the key expire, or pull down the value and compare, but pulling down uses the read limit ...

kewp avatar Dec 08 '23 07:12 kewp