Just a heads up. No point wasting much time on this, JSR 107 is in for a pretty major revamp.

https://groups.google.com/forum/#!forum/jsr107

Two threads in particular to note:

https://groups.google.com/forum/#!topic/jsr107/X0VhYs-uCWE
https://groups.google.com/forum/#!topic/jsr107/AkI2e4pJhyc

Cheers
Manik


On 9 May 2011, at 14:34, Galder Zamarreņo wrote:


On May 7, 2011, at 11:25 PM, Ales Justin wrote:

</snip>

Also, I'm not sure we can really implement this on top of Infinispan. Personally I think it's better if it's implemented within Infinispan. For example:

https://github.com/alesj/lhotse/blob/master/javax-cache/src/main/java/org/jboss/lhotse/cache/infinispan/InfinispanCache.java#L90

You're basically accessing the data container directly there and so you bypass any interceptors. So for example, in a distributed cache that call won't lookup the entry if not present locally. Same thing if the entry is instead located in a cache store.

Is there some other proper API I could use to implement this?
But I have nothing against moving this directly to Infinispan. :-)

AFAIK no, there's no API that allows to retrieve the info you need for the CacheEntry without getting into internals.

I'm not sure whether this is something we wanna be exposing right now.

--
Galder Zamarreņo
Sr. Software Engineer
Infinispan, JBoss Cache


_______________________________________________
infinispan-dev mailing list
infinispan-dev@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/infinispan-dev

--
Manik Surtani
manik@jboss.org
twitter.com/maniksurtani

Lead, Infinispan
http://www.infinispan.org