手把手教你用Go语言实现缓存系统

oYto · · 227365 次点击
cleanExpiredItem 里的外层for循环在主线程退出时不会退出,存在泄露问题,需要引入context,处理ctx.Done()来return。
#1