The type of items that the cache will store.
Protected headProtected tailProtected attachProtected getProtected hitProtected insertProtected method that insert a cache item just after another item in the linked list.
The item which already is in the list. The new item will be inserted at the position right after this item.
The item that will be inserted into the list.
Adds an item to the cache or updates an existing item's value. If the cache reaches its capacity, it evicts an item based on the specific cache's eviction policy.
The key associated with the item.
The value to be stored in the cache.
Optional expiry: numberOptional expiry time for the item.
Protected removeGenerated using TypeDoc
LRUCache class that extends BasicCache to implement the Least Recently Used (LRU) cache eviction policy. Items that are accessed recently are moved to the front, and the least recently used items are removed when the cache reaches its capacity.