1
0
mirror of https://github.com/astaxie/beego.git synced 2024-11-25 10:10:54 +00:00

check expird second

This commit is contained in:
astaxie 2013-04-22 21:49:34 +08:00
parent 5f36a3ae4a
commit 6c56a73b69

2
cache/memory.go vendored
View File

@ -110,7 +110,7 @@ func (bc *MemoryCache) vaccuum() {
return
}
for {
<-time.After(time.Duration(bc.dur))
<-time.After(time.Duration(bc.dur) * time.Second)
if bc.items == nil {
return
}