[infinispan-issues] [JBoss JIRA] (HRJS-87) Support transactional caches with pessimistic locking
Daniel Fröhlich (Jira)
issues at jboss.org
Sun Aug 4 04:10:00 EDT 2019
Daniel Fröhlich created HRJS-87:
-----------------------------------
Summary: Support transactional caches with pessimistic locking
Key: HRJS-87
URL: https://issues.jboss.org/browse/HRJS-87
Project: Infinispan Javascript client
Issue Type: Feature Request
Affects Versions: 0.6.0
Reporter: Daniel Fröhlich
As infinispan javascript client user, I want to be able to use transaction and locking capabilities of infinispan server so that I can implement my business functionality correctly.
I need to do pessimistic locking for certain critical cache entries from a nodejs server component. Infinispan Javascript API currently does not support transaction/locking.
I would love to see something like this:
{code:java}
await cache.transaction.begin();
await cache.lock(key);
value = await cache.get(key);
// Do something lengthy and critical with value here
cache.put(key, value);
await cache.transaction.commit();
{code}
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
More information about the infinispan-issues
mailing list