Interesting. If CheckAndPut succeeds, then you know the value and no need for Get, right? Only if it fail, you want to know current value if CheckAndPut fails? Can you elaborate on your use case, Jean-Marc?
-Vlad On Mon, Mar 25, 2019 at 11:54 AM Jean-Marc Spaggiari < [email protected]> wrote: > Hi all, > > We have all CheckAndxxx operations, where we verify something and if the > condition is true we perform the operatoin (Put, Delete, Mutation, etc.). > > I'm looking for a GetAndPut operation. Where in a single atomic call, I can > get the actual value of a cell (if any), and perform the put. Working on a > usecase where this might help. > > Do we have anything like that? I can simulate by doing a Get then a > CheckAndPut, but that's 2 calls. Trying to save one call ;) > > Do we have anything like that? > > Thanks > > JMS >
