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

typo fixed

#3260
This commit is contained in:
JessonChan 2018-08-07 12:08:15 +08:00
parent 842336834f
commit 34a812d45f

4
cache/memory.go vendored
View File

@ -203,12 +203,12 @@ func (bc *MemoryCache) StartAndGC(config string) error {
dur := time.Duration(cf["interval"]) * time.Second
bc.Every = cf["interval"]
bc.dur = dur
go bc.vaccuum()
go bc.vacuum()
return nil
}
// check expiration.
func (bc *MemoryCache) vaccuum() {
func (bc *MemoryCache) vacuum() {
if bc.Every < 1 {
return
}