guys is KV reliable enough for storing account states?
guys is KV reliable enough for storing account states?
await in your ctx.waitUntilwaitUntil takes a Promise and by using await, I'd assume you're actually waiting for the Promise to complete for .put before the result is passed to waitUntilwaitUntil?waitUntil then yeah, you should always await or the Worker can be finished with the response before it has written to KVn will show the new value.I'm seeing situations where customers from other regions hit my endpoint and the KV lookup returns nothing, but if I have them a few minutes later, they can access the object as expected.
Initial reads from a location do not have a cached value. The data must be read from the nearest central data store, resulting in a slower response.
200, <key/uuid>ctx.waitUntil.put200, <key/uuid>i want to store:
data: {
name: "Adam",
nick: "goodDude45",
...otherFields
}
sometimes i want to queary data by `name` and sometimes by `nick`