k.lock();
>
> cache.put("Hello", 11);
> cache.put("World", 22);
> }
> finally {
> // Release the lock
> lock.unlock();
> }
>
> Regards,
> Nattapon
>
> On Fri, Aug 16, 2019 at 5:23 PM Yohan Fernando <mailto:yohan.f
Sent: 19 August 2019 08:00
To: user@ignite.apache.org
Subject: Re: Does IgniteCache.containsKey lock the key in a Transaction?
Caution: This email originated from outside of Tudor.
Hi Yohan,
There is IgniteCache.lock(key) method described in
https://apacheignite.readme.io/docs/distributed-locks
// Acquire the lock
lock.lock();
cache.put("Hello", 11);
cache.put("World", 22);
}
finally {
// Release the lock
lock.unlock();
}
Regards,
Nattapon
On Fri, Aug 16, 2019 at 5:23 PM Yohan Fernando
wrote:
> Hi All, Does IgniteCache.containsKey()
Hi All, Does IgniteCache.containsKey() lock the key in a Transaction similar
to IgniteCache.get() ? Basically I want a lightweight call to lock the key
without having to Serialize objects from each node within a Transaction.
_
This