mirror of
https://github.com/astaxie/beego.git
synced 2025-06-11 04:40:39 +00:00
check expird second
This commit is contained in:
2
cache/memory.go
vendored
2
cache/memory.go
vendored
@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user