Galder Zamarreño created ISPN-8884:
--------------------------------------
Summary: JCache.put() does more work than required
Key: ISPN-8884
URL:
https://issues.jboss.org/browse/ISPN-8884
Project: Infinispan
Issue Type: Bug
Components: JCache
Affects Versions: 9.1.6.Final, 9.2.0.CR3
Reporter: Galder Zamarreño
JCache.put() has a void return but in spite of that it retrieves the previous value.
If the caller was getAndPut(), it'd make sense getting previous value.
If external policy is set to anything other than eternal external policy, it'd make
sense to get previous value to see if put is create or update (to get expiry).
Any other time, getting previous value should not be necessary.
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)