Skip to content

Support of keyspace events #182

@boahwas

Description

@boahwas

Maybe I didnt get it but when is use miniredis instead of go-redis and listening to the keypace events like:

client := redis.NewClient(&redis.Options{
Addr: s.Addr(),
})
client.ConfigSet("notify-keyspace-events", "Kx")
...
sub := client.PSubscribe("__keyspace@0__:" + key)
_ = <-sub.Channel()

Do I get a notification on the channel when a key expires

when i call s.FastForward(x) in my tests

(in go-redis everything works as expected)

thanks for your time

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions