[infinispan-issues] [JBoss JIRA] (ISPN-5189) Add a default compute function to the Cache interface

Tristan Tarrant (JIRA) issues at jboss.org
Wed Jan 28 04:02:49 EST 2015


Tristan Tarrant created ISPN-5189:
-------------------------------------

             Summary: Add a default compute function to the Cache interface
                 Key: ISPN-5189
                 URL: https://issues.jboss.org/browse/ISPN-5189
             Project: Infinispan
          Issue Type: Feature Request
          Components: Core
            Reporter: Tristan Tarrant


Java 8 has extended the Map interface with computeIfAbsent and putIfAbsent methods to support memoization. We could take this one step further by allowing setting a default mapping function using the Function<? super K,? extends V> signature so that invoking a get operation on a non-existent or expired entry will compute it and store it in the cache.



--
This message was sent by Atlassian JIRA
(v6.3.11#6341)


More information about the infinispan-issues mailing list