Unverified Commit b606f1f7 authored by astaxie's avatar astaxie Committed by GitHub

Merge pull request #3283 from JessonChan/develop

typo fixed
parents 8241f219 34a812d4
......@@ -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
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment