Support for keyspace notifications
Hello. jedis-mock is awesome! I'm just starting with testing an application and I am stuck. Right now i'm testing an application that subscribes to notifications when data is added/removed from redis. I used an interceptor to log each command and I do see a psubscribe message from the application but there are no messages when I delete data. Is this supported? I looked at the list of supported operations and I don't see notifications listed.
Hey @moaxcp unfortunately keyspace notifications are not supported yet, and you are the first person who asked for this feature. To be implemented :-)
Oof thanks for checking. I am still looking into using a docker container just for these tests. How would this feature be implemented?
Well frankly speaking, as it's a complex feature, I'd rather avoid giving you any time estimations. So if you really need to test keyspace notifications here and now, use TestContainers.
On the other hand, as practice shows, all the requested features are implemented here sooner or later. Even Lua support and streams were implemented ) But please understand that this is a volunteer project and I am doing this in my spare time or when I have students willing to implement a feature under my supervision.
Oh sorry I wasn't trying to push to get it done. I was wondering where to start.