mirror of https://github.com/astaxie/beego.git
no more goroutine ,i will be GCed at a gc goroutine
This commit is contained in:
parent
98e0626f0c
commit
6465dbd703
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue