Skip to content
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

Support for keyspace notifications #406

Open
moaxcp opened this issue Jan 11, 2024 · 4 comments
Open

Support for keyspace notifications #406

moaxcp opened this issue Jan 11, 2024 · 4 comments

Comments

@moaxcp
Copy link

moaxcp commented Jan 11, 2024

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.

@inponomarev
Copy link
Collaborator

Hey @moaxcp unfortunately keyspace notifications are not supported yet, and you are the first person who asked for this feature. To be implemented :-)

@moaxcp
Copy link
Author

moaxcp commented Jan 24, 2024

Oof thanks for checking. I am still looking into using a docker container just for these tests. How would this feature be implemented?

@inponomarev
Copy link
Collaborator

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.

@moaxcp
Copy link
Author

moaxcp commented Jan 30, 2024

Oh sorry I wasn't trying to push to get it done. I was wondering where to start.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants