[
https://jira.jboss.org/browse/ISPN-717?page=com.atlassian.jira.plugin.sys...
]
Galder Zamarreño commented on ISPN-717:
---------------------------------------
Not sure I understand the meaning of this JIRA. We agreed that you might need to load
before storing in order to get previous value, don't you?
If there's any loading to be done, this is done by CacheLoaderInterceptor, so I
don't understand what your point is about CacheStore.store() returning the previous
value. It shouldn't be left down to CacheStore impls to return previous values.
Trying to modify an entry that is not loaded into memory triggers an
unnecessary CacheStore.load() operation.
-------------------------------------------------------------------------------------------------------------
Key: ISPN-717
URL:
https://jira.jboss.org/browse/ISPN-717
Project: Infinispan
Issue Type: Bug
Components: Core API
Affects Versions: 4.2.0.Final
Reporter: Trustin Lee
Assignee: Manik Surtani
Fix For: 5.0.0.BETA1
There is no reason to load an entry from CacheStore to memory before modifying it. The
current implementation triggers CacheStore.load() unnecessarily when a user calls
Cache.put().
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira