dzhv.ioD
Denoβ€’2y agoβ€’
2 replies
dzhv.io

Is there a way to write a Deno.AtomicCheck that succeeds for any non-null versionstamp?

You can write a Deno.AtomicCheck that fails if the versionstamp for a key-value pair in the KV store does not match the given one.

You can also write a Deno.AtomicCheck with a null versionstamp that fails if any key-value pair exists in the KV store.

I need to write a Deno.AtomicCheck that fails if there is no existing key-value pair in the KV store.

Is it possible to do this?
Was this page helpful?