diff options
author | techknowlogick <techknowlogick@gitea.io> | 2023-04-13 18:41:04 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-13 18:41:04 -0400 |
commit | 985f76dc4b0692c4d6c6f37e82500ef859557c16 (patch) | |
tree | dec7e6ba9208954eaf2c33777ca0fe2e7ae989fd /modules/nosql | |
parent | 5b9557aef59b190c55de9ea218bf51152bc04786 (diff) | |
download | gitea-985f76dc4b0692c4d6c6f37e82500ef859557c16.tar.gz gitea-985f76dc4b0692c4d6c6f37e82500ef859557c16.zip |
Update redis library to support redis v7 (#24114)
Diffstat (limited to 'modules/nosql')
-rw-r--r-- | modules/nosql/manager.go | 2 | ||||
-rw-r--r-- | modules/nosql/manager_redis.go | 6 |
2 files changed, 2 insertions, 6 deletions
diff --git a/modules/nosql/manager.go b/modules/nosql/manager.go index bc530bc148..31e43297dc 100644 --- a/modules/nosql/manager.go +++ b/modules/nosql/manager.go @@ -11,7 +11,7 @@ import ( "code.gitea.io/gitea/modules/process" - "github.com/go-redis/redis/v8" + "github.com/redis/go-redis/v9" "github.com/syndtr/goleveldb/leveldb" ) diff --git a/modules/nosql/manager_redis.go b/modules/nosql/manager_redis.go index 728bc2f2ef..7066863b89 100644 --- a/modules/nosql/manager_redis.go +++ b/modules/nosql/manager_redis.go @@ -13,7 +13,7 @@ import ( "code.gitea.io/gitea/modules/log" - "github.com/go-redis/redis/v8" + "github.com/redis/go-redis/v9" ) var replacer = strings.NewReplacer("_", "", "-", "") @@ -193,10 +193,6 @@ func getRedisOptions(uri *url.URL) *redis.UniversalOptions { opts.MinIdleConns, _ = strconv.Atoi(v[0]) case "pooltimeout": opts.PoolTimeout = valToTimeDuration(v) - case "idletimeout": - opts.IdleTimeout = valToTimeDuration(v) - case "idlecheckfrequency": - opts.IdleCheckFrequency = valToTimeDuration(v) case "maxredirects": opts.MaxRedirects, _ = strconv.Atoi(v[0]) case "readonly": |