2023-01-18 17:09:49 +08:00
|
|
|
package refs
|
|
|
|
|
2023-01-18 17:46:25 +08:00
|
|
|
import (
|
|
|
|
"cutego/pkg/logging"
|
|
|
|
redisTool "cutego/pkg/redispool"
|
|
|
|
)
|
2023-01-18 17:09:49 +08:00
|
|
|
|
|
|
|
// 配置redis数据库
|
|
|
|
func init() {
|
2023-01-18 17:46:25 +08:00
|
|
|
logging.InfoLog("redis init start...")
|
2023-01-18 17:09:49 +08:00
|
|
|
RedisDB = redisTool.NewRedis()
|
2023-01-18 17:46:25 +08:00
|
|
|
logging.InfoLog("redis init end...")
|
2023-01-18 17:09:49 +08:00
|
|
|
}
|