[infinispan-issues] [JBoss JIRA] (ISPN-8717) Cache.put calls RemoteCache in forceReturnValues configuration

Alon Greenland (JIRA) issues at jboss.org
Tue Jan 23 04:43:00 EST 2018


Alon Greenland created ISPN-8717:
------------------------------------

             Summary: Cache.put calls RemoteCache in forceReturnValues configuration
                 Key: ISPN-8717
                 URL: https://issues.jboss.org/browse/ISPN-8717
             Project: Infinispan
          Issue Type: Bug
          Components: JCache
    Affects Versions: 9.1.4.Final, 9.2.0.CR1
            Reporter: Alon Greenland


In JCache Hot Rod client, Cache.put() operation, which doesn't return previous value, calls underlying Hot Rod RemoteCache in force return values mode.

This is inefficient.

In the code, I can see that in JCache class there is [RemoteCache<K, V> cacheWithoutReturnValue field|https://github.com/infinispan/infinispan/blob/master/jcache/remote/src/main/java/org/infinispan/jcache/remote/JCache.java#L58], but it is never being used!

 



--
This message was sent by Atlassian JIRA
(v7.5.0#75005)


More information about the infinispan-issues mailing list