1
0
mirror of https://github.com/astaxie/beego.git synced 2024-11-22 07:00:55 +00:00

no more goroutine ,i will be GCed at a gc goroutine

This commit is contained in:
JessonChan 2016-01-07 09:28:40 +08:00
parent 98e0626f0c
commit 6465dbd703

1
cache/memory.go vendored
View File

@ -64,7 +64,6 @@ func (bc *MemoryCache) Get(name string) interface{} {
defer bc.RUnlock()
if itm, ok := bc.items[name]; ok {
if itm.isExpire() {
go bc.Delete(name)
return nil
}
return itm.val