smrchy / rsmq

Redis Simple Message Queue
MIT License
1.75k stars 124 forks source link

How to prevent sending a message already enqueued ? #98

Closed testica closed 5 years ago

testica commented 5 years ago

I want to send a message but only when there isn't one with same string message in the queue. There is a way to query the queue by message in order to prevent sending again ?

rogerweb commented 5 years ago

No, there is not, but please remember this is a message queue so the message might be gone by the time you query for it, so you won't know if it has already been processed or it is a new message.

Please refer to the author's comments in #78

testica commented 5 years ago

Thank you @rogerweb, I saw there is not the intention of this project.