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