Skip to content
#

2pc

Here are 13 public repositories matching this topic...

rohitjoshi
rohitjoshi commented Jul 5, 2018

I have a use-case where two key-val should be inserted atomically (if not exist)and either insert fails should roll back. The 2nd key is a secondary index.

Key1= Hash1
Value1= Token1

Key2= Token1
Value2= json payload

How can I insert both atomically? Now if Key1 or Key2 (Token1) already exists, it should roll back the operation.

I see [HmsetWithTxn ](https://github.com/yongman

Improve this page

Add a description, image, and links to the 2pc topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the 2pc topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.