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 | |
parent | 5b9557aef59b190c55de9ea218bf51152bc04786 (diff) | |
download | gitea-985f76dc4b0692c4d6c6f37e82500ef859557c16.tar.gz gitea-985f76dc4b0692c4d6c6f37e82500ef859557c16.zip |
Update redis library to support redis v7 (#24114)
Diffstat (limited to 'modules')
-rw-r--r-- | modules/cache/cache_redis.go | 2 | ||||
-rw-r--r-- | modules/nosql/manager.go | 2 | ||||
-rw-r--r-- | modules/nosql/manager_redis.go | 6 | ||||
-rw-r--r-- | modules/queue/queue_redis.go | 2 | ||||
-rw-r--r-- | modules/queue/unique_queue_redis.go | 2 | ||||
-rw-r--r-- | modules/session/redis.go | 2 |
6 files changed, 6 insertions, 10 deletions
diff --git a/modules/cache/cache_redis.go b/modules/cache/cache_redis.go index 8e056ff2ec..f22482de48 100644 --- a/modules/cache/cache_redis.go +++ b/modules/cache/cache_redis.go @@ -12,7 +12,7 @@ import ( "code.gitea.io/gitea/modules/nosql" "gitea.com/go-chi/cache" - "github.com/go-redis/redis/v8" + "github.com/redis/go-redis/v9" ) // RedisCacher represents a redis cache adapter implementation. 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": diff --git a/modules/queue/queue_redis.go b/modules/queue/queue_redis.go index 039e95241c..f8842fea9f 100644 --- a/modules/queue/queue_redis.go +++ b/modules/queue/queue_redis.go @@ -10,7 +10,7 @@ import ( "code.gitea.io/gitea/modules/log" "code.gitea.io/gitea/modules/nosql" - "github.com/go-redis/redis/v8" + "github.com/redis/go-redis/v9" ) // RedisQueueType is the type for redis queue diff --git a/modules/queue/unique_queue_redis.go b/modules/queue/unique_queue_redis.go index 491ae5d15e..ae1df08ebd 100644 --- a/modules/queue/unique_queue_redis.go +++ b/modules/queue/unique_queue_redis.go @@ -6,7 +6,7 @@ package queue import ( "context" - "github.com/go-redis/redis/v8" + "github.com/redis/go-redis/v9" ) // RedisUniqueQueueType is the type for redis queue diff --git a/modules/session/redis.go b/modules/session/redis.go index b7cdbef6f8..322470743a 100644 --- a/modules/session/redis.go +++ b/modules/session/redis.go @@ -26,7 +26,7 @@ import ( "code.gitea.io/gitea/modules/nosql" "gitea.com/go-chi/session" - "github.com/go-redis/redis/v8" + "github.com/redis/go-redis/v9" ) // RedisStore represents a redis session store implementation. |