Couchbase Get() followed by atomic Increment()
<p>I have a program that does the following :</p>

<ol>
<li><p>Check if the key is present in couchbase using Get()</p></li>
<li><p>If its present then don't do anything, return a false to the calling application.</p></li>
<li><p>if the key is not present, then increment it with a value of 1.</p></li>
</ol>

<p>So basically, the value of my key created with Increment will always be 1 and actually wont be incremented ( im using Increment just to create the key using atomicity ).</p>

<p>My question is what if the Get() operation is invoked from 3 requests at the exact same time.. ? </p>

<p>Will the first request be successful in incrementing the key and will point number 2 mentioned above be applicable for the remaining 2 requests.. ?</p>

<p>or</p>

<p>Will all 3 requests face point number 1 and then increment the key 3 times.. ?</p>

<p>Im using the .NET SDK for couchbase.</p>