Support for redis v7 (via go-redis upgrade) #10652

Closed
opened 2025-11-02 09:14:23 -06:00 by GiteaMirror · 0 comments
Owner

Originally created by @pat-s on GitHub (Apr 13, 2023).

Feature Description

Redis v7 seems to require go-redis >= 9.0 as this version includes some important redis 7.0 fixes.

One of them is https://github.com/redis/go-redis/pull/2110, which adds support for a connection string change in redis 7.0 which prevents from connection to redis-cluster instances of >= 7.0.

gitea 2023/04/13 20:00:47 routers/init.go:61:mustInit() [F] code.gitea.io/gitea/modules/cache.NewContext failed: got 4 elements in cluster info address, expected 2 or 3

The corresponding issue is https://github.com/redis/go-redis/issues/2085 which then links to the PR mentioned above.
The current version in use is v8.11.5: https://github.com/go-gitea/gitea/blob/main/go.mod#L47

Screenshots

No response

Originally created by @pat-s on GitHub (Apr 13, 2023). ### Feature Description Redis v7 seems to require `go-redis` >= 9.0 as this version includes some important redis 7.0 fixes. One of them is https://github.com/redis/go-redis/pull/2110, which adds support for a connection string change in redis 7.0 which prevents from connection to `redis-cluster` instances of >= 7.0. ``` gitea 2023/04/13 20:00:47 routers/init.go:61:mustInit() [F] code.gitea.io/gitea/modules/cache.NewContext failed: got 4 elements in cluster info address, expected 2 or 3 ``` The corresponding issue is https://github.com/redis/go-redis/issues/2085 which then links to the PR mentioned above. The current version in use is v8.11.5: https://github.com/go-gitea/gitea/blob/main/go.mod#L47 ### Screenshots _No response_
GiteaMirror added the type/upstreamtopic/build labels 2025-11-02 09:14:23 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#10652