简体   繁体   中英

How to fetch all the elements in a MemoryStore of an existing cache [EHCache]

I'm new to EHCache. I have implemented EHCache for my application. I have configured all the cache configuration's. I found that in my cache's MemoryStore there are certain number of elements existing in it. I would like to fetch them all for further manipulation. Could anyone help me out as to how to access elements in MemoryStore of my existing cache.

Thank You in Advance.

Here is a snippet to get you started:

cacheKeys = CacheInfo.getCacheKeys();
cacheKeys.forEach((String k) -> {

});

There is no public API to access elements of a specific store in Ehcache. The whole point of the store system is to improve read performance, in a transparent fashion.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM