Closed ncruces closed 4 years ago
Currently cache.go does eviction first, then insertion.
cache.go
In principle, this is good, because it avoids unnecessary growth. But if we're updating a stale entry, this might lead to evicting a valid entry here.
A possible solution is to do insertion first, then eviction.
Currently
cache.go
does eviction first, then insertion.In principle, this is good, because it avoids unnecessary growth. But if we're updating a stale entry, this might lead to evicting a valid entry here.
A possible solution is to do insertion first, then eviction.