feat(redis):在Redis工具包中增加共用的Context。

This commit is contained in:
徐涛 2022-08-09 16:16:10 +08:00
parent 6a8daf77d2
commit 2cb2cf3cc7

View File

@ -1,6 +1,7 @@
package global
import (
"context"
"electricity_bill_calc/config"
"fmt"
@ -9,6 +10,7 @@ import (
var (
RedisConn *redis.Client
Ctx = context.Background()
)
func SetupRedisConnection() error {