Let's assume I need to update an item in a cache and then invoke commitAsync(). Is the following a valid code pattern?

Transaction transaction = ignite.transactions().txStart();
cache.putAsync(key, value); // this
cache.put(key, value); // or this
transaction.commitAsync().listen(fut -> /* respond to the caller */);

Thanks!

Kamil

Reply via email to