优化全局变量
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
package refs
|
||||
|
||||
import redisTool "cutego/pkg/redispool"
|
||||
|
||||
// 配置redis数据库
|
||||
func init() {
|
||||
RedisDB = redisTool.NewRedis()
|
||||
}
|
||||
Reference in New Issue
Block a user