Object -
cache
:
LruEvictionPolicy
The cache:LruEvictionPolicy
object consists of the LRU eviction algorithm related operations based on a linked
list data structure.
Methods
Updates the linked list based on the get operation related to the LRU eviction algorithm.
Updates the linked list based on the put operation related to the LRU eviction algorithm.
Updates the linked list based on the remove operation related to the LRU eviction algorithm.
Updates the linked list based on the replace operation related to the LRU eviction algorithm.
Updates the linked list based on the clear operation related to the LRU eviction algorithm.
Updates the linked list based on the evict operation.
Updates the linked list based on the get operation related to the LRU eviction algorithm.
Parameters
- node Node
-
Node of the linked list, which is retrieved
Updates the linked list based on the put operation related to the LRU eviction algorithm.
Parameters
- node Node
-
Node of the linked list, which is added newly
Updates the linked list based on the remove operation related to the LRU eviction algorithm.
Parameters
- node Node
-
Node of the linked list, which is deleted
Updates the linked list based on the replace operation related to the LRU eviction algorithm.
Updates the linked list based on the clear operation related to the LRU eviction algorithm.