Hi,
Our requirement is like I have to put two different type of entities in cache and then start the eviction based on the number of instances of these two different entities.
Any suggestions will be huge help.
No, the best would be to use two caches. Or alternatively, implement your own eviction algorithms using listeners to keep track of the counts.