Re: Cache#replace(K,V,V) implementation

2019-04-12 Thread aealexsandrov
Hi, It's true that Ignite provides the implementation for JSR107: https://ignite.apache.org/use-cases/caching/jcache-provider.html https://apacheignite.readme.io/docs/jcache Unfortunately, I don't have the details of how exactly it was implemented and can't suggest you in your questions but Apac

Cache#replace(K,V,V) implementation

2019-04-09 Thread max904
1) How does Ignite implement this Cache#boolean replace(K key, V oldValue, V newValue) function?JSR107 tells that it's equivalent to: if (cache.containsKey(key) && *equals*(cache.get(key), oldValue)) { cache.put(key, newValue); return true; } else { return false; }but I assume this is just logica