How would you implement eviction logic?Would you use go routines...?
Anonym
I would run a ticker in the background periodically and call the evict method as a go routine in the constructor and use mutexes to protect resources. Wrote additional code to show how to implement this