@@ -4,7 +4,7 @@ import (
"sync"
"time"
- "github.com/go-redis/redis"
+ "github.com/go-redis/redis/v7"
)
// RedisConfig config
@@ -218,4 +218,4 @@ func Del(key string) (int64, error) {
return 0, err
}
return c.Del(key)
-}
+}
@@ -3,6 +3,7 @@ module git.chuangxin1.com/cx/myth
go 1.13
require (
+ github.com/go-redis/redis/v7 v7.2.0
github.com/go-sql-driver/mysql v1.5.0
github.com/golang/protobuf v1.3.5
github.com/jmoiron/sqlx v1.2.0