Hello, I'm using LRU cache with eviction to manage a small cache. During the usage, I noticed the onEvict doesn't call on all evicted elements. After dig into the code, it seems like at this code, instead of pop the evicted element as a queue, the entire eviction list is reset
|
c.evictedKeys, c.evictedVals = c.evictedKeys[:0], c.evictedVals[:0] |