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.
Properties
Section titled “Properties”close?
Section titled “close?”
optionalclose?: () =>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.
Returns
Section titled “Returns”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.
Parameters
Section titled “Parameters”script
Section titled “script”string
string[]
string[]
Returns
Section titled “Returns”Promise<unknown>
publish
Section titled “publish”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.
Parameters
Section titled “Parameters”channel
Section titled “channel”string
message
Section titled “message”string
Returns
Section titled “Returns”Promise<void>
subscribe
Section titled “subscribe”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.
Parameters
Section titled “Parameters”channel
Section titled “channel”string
onMessage
Section titled “onMessage”(message) => void
Returns
Section titled “Returns”Promise<() => Promise<void>>