13 lignes
151 o
Go
13 lignes
151 o
Go
package cache
|
|
|
|
import (
|
|
"time"
|
|
|
|
"github.com/patrickmn/go-cache"
|
|
)
|
|
|
|
var C *cache.Cache
|
|
|
|
func init() {
|
|
C = cache.New(5*time.Minute, 10*time.Minute)
|
|
}
|