mirror of
https://github.com/astaxie/beego.git
synced 2024-11-22 01:41:00 +00:00
check expird second
This commit is contained in:
parent
5f36a3ae4a
commit
6c56a73b69
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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user