Implement LRU
(Least Recently Used) Cache Policy
#14
Labels
enhancement
New feature or request
hard
Damn you believe yourself too much (not a thing) I dare you to solve these!
What is
LRU
?LRU
is a cache policy that removes the least recently used items when space is neededTechnical Requirements:
LRUCachePolicy
that implements theCachePolicy
interfaceEject(m *Memoria, requiredSpace uint64) error
Insert(m *Memoria, key string, val []byte) error
NOTE You are welcome to use libraries for data structures but in that case this will be scored as a MEDIUM
Example Structure:
The text was updated successfully, but these errors were encountered: