Skip to content

Instantly share code, notes, and snippets.

@vhuerta
Last active December 2, 2020 18:55
Show Gist options
  • Select an option

  • Save vhuerta/8bf010f131d14d681ed5d7f84472cd44 to your computer and use it in GitHub Desktop.

Select an option

Save vhuerta/8bf010f131d14d681ed5d7f84472cd44 to your computer and use it in GitHub Desktop.
Manually add a message to RSMQ
MULTI
ZADD rsmq:{queueName} {epoch} {id}
HSET rsmq:{queueName}:Q {id} {message}
HINCRBY rsmq:{queueName}:Q totalsent 1
EXEC
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment