release v1.2.0
This commit is contained in:
13
server/global/cache/cache.go
vendored
Normal file
13
server/global/cache/cache.go
vendored
Normal file
@ -0,0 +1,13 @@
|
||||
package cache
|
||||
|
||||
import (
|
||||
"time"
|
||||
|
||||
"github.com/patrickmn/go-cache"
|
||||
)
|
||||
|
||||
var GlobalCache *cache.Cache
|
||||
|
||||
func init() {
|
||||
GlobalCache = cache.New(5*time.Minute, 10*time.Minute)
|
||||
}
|
Reference in New Issue
Block a user