Skip to content

Upgrade go-redis to v7#7

Merged
mcmathja merged 3 commits into
masterfrom
jm_redis_upgrade
Apr 25, 2020
Merged

Upgrade go-redis to v7#7
mcmathja merged 3 commits into
masterfrom
jm_redis_upgrade

Conversation

@mcmathja

Copy link
Copy Markdown
Owner

This updates go-redis to v7, enabling some important features that should be available before stabilizing the API (such as compatibility with sentinel authentication).

One major change in v7 is that the go-redis client now correctly respects context cancellations, preventing future requests and quitting those that are inflight. Because we need the client to stay alive until cleanup is finished, we need to provide it with a separate context from the main consumer context that isn't cancelled until cleanup is finished. This change allows us to shut down the client when we don't finish in the specified grace period, preventing unexpected changes to the queue after a forced shutdown.

@mcmathja
mcmathja merged commit 66594e7 into master Apr 25, 2020
@mcmathja
mcmathja deleted the jm_redis_upgrade branch April 25, 2020 20:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant