com.whirlycott.cache.policy |
Policy implementations are used by the CacheManager to handle the
removal of cache Items.
|
Java Source File Name | Type | Comment |
AddedComparator.java | Class | A comparison function, used by FIFOMaintenancePolicy, which determines whether one Item was added before a second
Item. |
CountComparator.java | Class | A comparison function, used by LFUMaintenancePolicy, which determines whether one Item has been used more than a
second Item, using said Items' count properties. |
ExpirationTimePredicate.java | Class | A predicate for filtering Collections of Items based on their expiration time. |
FIFOMaintenancePolicy.java | Class | This policy removes cache items in the order in which they were added. |
LFUMaintenancePolicy.java | Class | This policy removes cached items, biased towards least frequently used (LFU) Items. |
LRUMaintenancePolicy.java | Class | This policy removes cached items, biased towards least recently used (LRU) Items. |
NullPolicy.java | Class | This policy does nothing and is sometimes useful for debugging. |
UsedComparator.java | Class | A comparison function, used by LRUMaintenancePolicy, which determines whether one Item has been used more recently
than a second Item, using said Items' used properties. |