package cache import ( "time" "github.com/patrickmn/go-cache" ) var myCache *Cache func init() { myCache = &Cache{C: cache.New(10*time.Minute, 3*time.Hour)} }