[infinispan-issues] [JBoss JIRA] (ISPN-8884) JCache.put() does more work than required

Jive JIRA Integration (JIRA) issues at jboss.org
Tue Feb 27 09:41:01 EST 2018


     [ https://issues.jboss.org/browse/ISPN-8884?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jive JIRA Integration updated ISPN-8884:
----------------------------------------
    Forum Reference: https://developer.jboss.org/message/980731#980731, https://developer.jboss.org/message/980333#980333  (was: https://developer.jboss.org/message/980731#980731)


> 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.



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



More information about the infinispan-issues mailing list