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 changed files with 0 additions and 1 deletions

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