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

Merge pull request #3283 from JessonChan/develop

typo fixed
This commit is contained in:
astaxie 2018-08-09 17:05:25 +08:00 committed by GitHub
commit b606f1f73f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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
}