0

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.

Knight
  • 57
  • 1
  • 8

2 Answers2

0

Here is a snippet to get you started:

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

});
Sam
  • 5,424
  • 1
  • 18
  • 33
  • I'm able to get elements in cache.I would like to fetch elements present in MemoryStore of that cache. – Knight Dec 11 '17 at 12:32
0

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.

Louis Jacomet
  • 13,661
  • 2
  • 34
  • 43