Compare and swap transaction operation?

In source code, I can see references to a ::xt/cas but it’s not documented in Datalog Transactions · XTDB Docs . What are the use case for this transaction operation ?

Hey @jprudent the CAS operation was deprecated in favour of the explicit combination of Match + Put, but it still exists in the code for backwards compatibility, see: Splitting `cas` into `match` and `put` · Issue #500 · xtdb/xtdb · GitHub

1 Like