No You would have to store the value in

No. You would have to store the value in DO storage, push to it, and then update the stored value and KV
5 Replies
Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
Hello, I’m Allie!
The value should be initialized from storage, and should never be read directly from KV So basically, have an initial value, store it in DO storage. Whenever a request comes in, preform some kind of mutation, and then store the new value in KV and DO storage
Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
Hello, I’m Allie!
It’s not that KV is just a “cache”, it is more that, whenever you are reading from it, you are never guaranteed that that value is the most recent value, so it is best to store it somewhere where you can be sure you operate atomically Well, actually, I guess it sort of is like a cache, except items never get evicted, unless you tell them to
Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
Want results from more Discord servers?
Add your server