Least Frequently Used (LFU) is a type of cache algorithm used to manage memory within a computer. The standard characteristics of this method involve the system keeping track of
You might benefit from the LFU implementation of ActiveMQ: LFUCache
They have provided some good functionality.