Skip to content

RedisNotifyProvider

RedisNotifyProvider = object

Defined in: notify-provider/notify-provider.redis.ts:7

Redis notify provider interface.

Abstracts Redis pub/sub operations. The provider manages connections internally - no explicit context management required.

optional close?: () => Promise<void>

Defined in: notify-provider/notify-provider.redis.ts:34

Releases provider-owned resources. Optional — pass-through providers (user-owned client) can omit it. When defined, must be idempotent.

Promise<void>


eval: (script, keys, args) => Promise<unknown>

Defined in: notify-provider/notify-provider.redis.ts:28

Executes a Lua script. Internally uses the command client.

string

string[]

string[]

Promise<unknown>


publish: (channel, message) => Promise<void>

Defined in: notify-provider/notify-provider.redis.ts:12

Publishes a message to a channel. Internally uses the command client.

string

string

Promise<void>


subscribe: (channel, onMessage) => Promise<() => Promise<void>>

Defined in: notify-provider/notify-provider.redis.ts:19

Subscribes to a channel. The provider uses a dedicated subscription client internally. Returns an unsubscribe function.

string

(message) => void

Promise<() => Promise<void>>