0 Replies Latest reply on Jun 26, 2013 10:50 AM by Román Wasinger

    Can I access programmatically the statistics for the cached elements?

    Román Wasinger Newbie



      I would like to know if there is any way to programmatically get the statistics for the cached elements. I would need to get the metadata of each element, having access to details, such as the hit count - the number of times the entry was requested while it was in the cache.


      It would be really really great if we can ask the cache for "the top X elements" and it returns a list of elements (K+V), ordered by the "ranking" used by the eviction algorithm.


      Is it possible to implement something like this with Infinispan? In that case, what is the right direction to take?