Class LIFOCache
java.lang.Object
NetStrategies.CacheStrategy
NetStrategies.CacheStrategies.LIFOCache
- All Implemented Interfaces:
AutoCheck
LIFO (Last In First Out) cache eviction strategy: removes the item that last joined the cached item list.
-
Field Summary
Fields inherited from class CacheStrategy
engine, netSystem, removeItemMode -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetRemoveItem(LinkedList<CacheItem> caches) LIFO cache works by finding the item that last join the cached item list.Methods inherited from class CacheStrategy
check, getRemoveItemMode, setNetSystem, setRandomEngine, setRemoveItemMode
-
Constructor Details
-
LIFOCache
public LIFOCache()
-
-
Method Details
-
getRemoveItem
LIFO cache works by finding the item that last join the cached item list.- Specified by:
getRemoveItemin classCacheStrategy- Parameters:
caches- the list of the cached items.- Returns:
-