feat(redis):在Redis工具包中增加共用的Context。
This commit is contained in:
parent
6a8daf77d2
commit
2cb2cf3cc7
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue
Block a user