cache

This commit is contained in:
微凉
2021-10-27 18:59:03 +08:00
parent fb7e67724d
commit 9644cc98c3
13 changed files with 743 additions and 29 deletions

View File

@ -1,6 +1,10 @@
package conf
import "gorm.io/gorm"
import (
"context"
"github.com/eko/gocache/v2/cache"
"gorm.io/gorm"
)
var (
ConfigFile string // config file
@ -8,6 +12,8 @@ var (
Debug bool
DB *gorm.DB
Cache *cache.Cache
Ctx = context.TODO()
)
var (