ls 4 years ago
parent
commit
642644a02a
2 changed files with 3 additions and 2 deletions
  1. 2 2
      cache/redis.go
  2. 1 0
      go.mod

+ 2 - 2
cache/redis.go

@@ -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)
-}
+}

+ 1 - 0
go.mod

@@ -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