Closed xiaoyaozhuzi closed 3 years ago
Hi, the idea is to protect items with high reuse in R (s queue in the code) by allowing Cacheus to evict only from the scan resistant portion of the cache SR (q queue in the code). Items from R will eventually get pushed or demoted to SR for eviction.
The decision of using the LRU algorithm to manage SR (q queue) is to give the opportunity of capturing any recency that might be in new items entering the cache.
Closing due to inactivity.
Why choose lru algorithm from q queue?
The data that may match is in s queue.