That's possible. Yet it will not help with implementing another database 
based on that key-value store.

Because even if (I do not know how and doubt that) badger provides CAS 
capabilities, one can not simply use it directly because:

- The meaning and implementation of CAS at document level (and a 
transaction involving multiple documents) might greatly differ from that of 
at a simple key level and
- It requires to expose badger transactions (*Txn) objects to the end user 
- nullifying the whole point of having document level utilities.

And as noted before, transactions alone can not provide CAS capabilities.

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to