This content has been marked as final.
Show 2 replies
-
1. Re: how to get cache store and get keys from it
mgencur May 10, 2012 3:07 AM (in response to matlach)1 of 1 people found this helpfulYou can use the following call to retrieve the cache store:
org.infinispan.loaders.CacheStore s = cache.getAdvancedCache().getComponentRegistry().getComponent(CacheLoaderManager.class).getCacheStore();
after that, you can call methods like s.containsKey(Object key), s.store(InternalCacheEntry entry), s.load(Object key)
InternalCacheEntry is an interface and has a few implementations, e.g. ImmortalCacheEntry.
-
2. Re: how to get cache store and get keys from it
matlach May 14, 2012 11:22 PM (in response to mgencur)Thanks Martin for pointing me out how to recover the cache loader ; really not obvious at the first start !
I guess I'll fill an enhancement request to ease manipulation of passivated entries.
Thanks again,