etcd-io / jetcd

etcd java client

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

how to use txn.If() check whether some key exists?

Nicholas-DoubleW opened this issue · comments

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

java version 1.8
jetcd-core version 0.7.5

Describe the solution you'd like
A clear and concise description of what you want to happen.
I want to use txn.If() check key exists and do txn.Then()

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

commented

Maybe you're looking the lock client? more message for it can help.

Maybe you're looking the lock client? more message for it can help.

My main purpose is to submit multiple pieces of data and sure the atomicity of a transaction. Does the lock client have such capabilities?