IMQOptions.prefix property

Global key namespace for everything this queue writes. Defaults to 'imq'.

Signature:

prefix?: string;

Remarks

The prefix scopes more than the queue keys: it also scopes the delayed set, the pub/sub channel names, and the watcher election lock <prefix>:watch:lock. All queues sharing a prefix on the same Redis host therefore elect exactly one watcher between them, and IMessageQueue.publish() can only reach names inside the same prefix. Use distinct prefixes to isolate unrelated applications on a shared Redis.

Read this page as plain markdown — no HTML, no navigation. For pasting into an LLM, or for an agent to fetch.