go-generics-cache
go-generics-cache copied to clipboard
Refactor DeleteExpired for safer behavior
-
make sure that expManager queue is not empty before popping, which can happen if an explicit delete happens while DeleteExpired releases the lock.
-
evict() now returns shouldContinue instead of a shouldBreak to simplify the loop.