forked from free-lancers/electricity_bill_calc_service
		
	feat(redis):在Redis工具包中增加共用的Context。
This commit is contained in:
		| @@ -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 { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user