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

Publish during/inside transaction? #10

Closed
nmehlei opened this issue Apr 3, 2014 · 3 comments
Closed

Publish during/inside transaction? #10

nmehlei opened this issue Apr 3, 2014 · 3 comments

Comments

@nmehlei
Copy link

nmehlei commented Apr 3, 2014

Hi,
While converting my code from Booksleeve to StackExchange.Redis, I found that the new transaction system does not support publishing inside of a transaction like Booksleeve did.
I guess this is by design (changes for Redis Cluster?), but is there some kind of way to combine the actions from GetDatabase and GetSubscriber? In my use case, I have to (kind of batch processing like) set lots of keys and publish a message for each of them. This seemed way more straight-forward in Booksleeve, but maybe I missed something?

@mgravell
Copy link
Collaborator

mgravell commented Apr 3, 2014

I actually anguished over which API publish belonged on. I thought I had made a sane choice, but your argument is compelling. There was certainly no intent to remove this option from transactions. I'll add it into both APIs - that should allow the best of both worlds. Will change and deploy tomorrow.

@mgravell
Copy link
Collaborator

mgravell commented Apr 4, 2014

Fixed in .245

@mgravell mgravell closed this as completed Apr 4, 2014
@nmehlei
Copy link
Author

nmehlei commented Apr 4, 2014

Wow, that was quick, thanks!

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

No branches or pull requests

2 participants