Hi,
We use infinispan in our project in distributed mode (plus same backups). We need to have a sequence between all our servers. Does infinispan has some incr/decr atomic actions (like memcached has for example) that does not require locks (we dont use the JTA transaction in our project)?
Something like this work?
Cache c;
do {
int value = c.get(key);
} while (!c.replace(key, value, value+1));
Not sure it'd be fast or not.