We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
s, c := setupMiniredis() defer s.Close() c.ConfigSet("notify-keyspace-events", "KA") c.Set("abc", "def", 0) p := c.Subscribe("__keyspace@0__:abc") // subscribe key space `abc` go func() { time.Sleep(time.Second) c.Set("abc", "defd", 0) // update value }() for msg := range p.Channel(){ // block here fmt.Println(msg) }
I use miniredis to test subscribe logic, and block.
The text was updated successfully, but these errors were encountered:
Miniredis currently does not support the keyspace events. See also #182.
Sorry, something went wrong.
No branches or pull requests
I use miniredis to test subscribe logic, and block.
The text was updated successfully, but these errors were encountered: