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.orghttps://lists.jboss.org/mailman/listinfo/infinispan-dev