Changing the expiration requires a write and having read operations secretly write isn't a good idea
Changing the expiration requires a write and having read operations secretly write isn't a good idea for multiple reasons.
get(“someKey”, {expirationTtl: 1800});. And it seems like overkill to have to rewrite a key every time to reset the expiration timer…expirationTtl, that defeats the purpose since you need to hit the storage. And what happens if we fail to update the TTL is that an error? If yes, then we'd have to wait for the response from the storage & it's not cacheable. It would have to be no which means there's no way to signal to the user that we failed to update the TTL.

wrangler.toml is safe to upload to version controlkv_namespaces = [
{ binding = "TEST", id = "xxx", preview_id = "yyy" },
]