weyoss / redis-smq

A simple high-performance Redis message queue for Node.js.
MIT License
596 stars 64 forks source link

Request for clarification of TTL message functions in documentation #114

Open PhilHannent opened 2 months ago

PhilHannent commented 2 months ago

I am looking for clarification of the following function calls, in terms of their behaviour:

https://github.com/weyoss/redis-smq/blob/master/docs/api/classes/ProducibleMessage.md#setttl

https://github.com/weyoss/redis-smq/blob/master/docs/api/classes/ProducibleMessage.md#setconsumetimeout

I have a queue on which I put messages onto at specific intervals and I'd like to ensure the existing queued item is either dropped (or ideally, that I can't add a duplicate message until the queued item has been processed).

Thanks