]
Galder Zamarreño updated ISPN-8884:
-----------------------------------
Forum Reference:
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.2.0.CR3, 9.1.6.Final
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.