[infinispan-issues] [JBoss JIRA] Created: (ISPN-721) Change CacheStore.store() to return the previous value instead of void.

Trustin Lee (JIRA) jira-events at lists.jboss.org
Wed Oct 20 05:37:54 EDT 2010


Change CacheStore.store() to return the previous value instead of void.
-----------------------------------------------------------------------

                 Key: ISPN-721
                 URL: https://jira.jboss.org/browse/ISPN-721
             Project: Infinispan
          Issue Type: Task
          Components: Core API
    Affects Versions: 4.2.0.Final
            Reporter: Trustin Lee
            Assignee: Trustin Lee
             Fix For: 5.0.0.BETA1


Cache.put(key, value) operation returns a previous value.  However, CacheStore.store() does not return a previous value but void.  To overcome the impedance mismatch, the current implementation calls CacheStore.load() to simply get the previous value.  CacheStore.store() could be improved to reduce this unnecessary round trip.

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

        


More information about the infinispan-issues mailing list