dragonfly
dragonfly copied to clipboard
named alarms feature
Similarly to PUBLISH channel message
,
introduce asynchornous ALARM name id seconds
that will trigger the message into channel name after seconds
.
if someone will call ALARM name id seconds
again, it will override and update the time when id
should fire.
A consumer client may register to the channel with the alarm name
and receive the alarm fire events there.
The alarm will be a one-shot event.
Came from a discussion in discord where originally the user wanted to use "SETEX" call with event notifications. The consumer may register to the channel with the alarm name and receive the alarm fire events there. The alarm will be a one-shot event.