-
1. Re: how does remoteCache.putIfAbsent work?
sea_shankar Jun 15, 2017 5:07 PM (in response to sea_shankar)I should mention that containsKey(key1) returns true after both iterations and when I do a get(key1) returns value1 in both iterations
-
2. Re: how does remoteCache.putIfAbsent work?
william.burns Jun 15, 2017 5:25 PM (in response to sea_shankar)This is how remote cache is designed to work. By default it doesn't return values for operations that aren't get etc.
Search for 19.6.16. Return values if you can't find it
-
3. Re: how does remoteCache.putIfAbsent work?
sea_shankar Jun 15, 2017 5:51 PM (in response to william.burns)Ahhh I was looking at the api documentation and it had V in front so was expecting a value. Thanks again!
-
4. Re: how does remoteCache.putIfAbsent work?
sea_shankar Jun 15, 2017 6:06 PM (in response to william.burns)How bad is it to return values?
-
5. Re: how does remoteCache.putIfAbsent work?
nadirx Jun 16, 2017 1:14 AM (in response to sea_shankar)There is nothing "inherently bad" about returning values, just the cost of marshalling them and sending them through the wire, so this is directly proportional to their size.
If you only need return values in a few special cases, just use the flag there. If you need them for every operation (put*, remove, etc) you can turn them on in the configuration (see ConfigurationBuilder (Infinispan JavaDoc All 9.0.1.Final API) )