-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Pubsub stoped supporting "__redis__:invalidate" messages #3093
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Labels
Comments
Also note: when subscribed to logs from redis-cli when full resynchronization is triggered
Logs from the code example provided above for v9:
Logs for v8
|
+1 same problem |
+1 same problem |
Up. Any news on this? |
I'm currently testing a fix and will submit the merge request soon. |
Here is the pull request: #3326 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
go-redis v9 stopped supporting
__redis__:invalidate
messages in pubsub channelsExpected Behavior
Pubsub allows receiving
invalidate
messages from the subscription on__redis__:invalidate
channelCurrent Behavior
In v9
pubsub.Receive
returns errorredis: unsupported pubsub message: "invalidate"
Steps to Reproduce
The following code snippet works fine on v8 but breaks on v9
Running this code with v8 produces the following output when issuing
set foo 1
withredis-cli
Running it with v9 produces the following output when issuing
set foo 1
withredis-cli
Context (Environment)
go version go1.22.6 linux/amd64
I'm implementing client-side cache invalidation (https://redis.io/docs/latest/develop/use/client-side-caching/#broadcasting-mode)
The text was updated successfully, but these errors were encountered: