- All Known Implementing Classes:
- Cache.LFU, Cache.LRU, Cache.Rand
public interface CacheStrategy<K>
Chache management strategy.
Defines the policy to use to choose the element to remove from the cache
when cache is full and a new element enters the cache.
To be able to make its choice, le strategy must be aware of all insertion, deletion
of object in the cache. It must also be notified for each access in the cache.
removed(), used() and added() are the callback to be defined for this purpose.