MCPcopy
hub / github.com/redis/node-redis / publish

Function publish

packages/client/lib/client/tracing.ts:261–269  ·  view source on GitHub ↗
(
  name: K,
  factory: () => ChannelEvents[K]
)

Source from the content-addressed store, hash-verified

259}
260
261export function publish<K extends keyof ChannelEvents>(
262 name: K,
263 factory: () => ChannelEvents[K]
264): void {
265 const ch = pointChannels?.[name];
266 if (ch?.hasSubscribers) {
267 ch.publish(factory());
268 }
269}

Callers 15

handleCacheMethod · 0.90
invalidateMethod · 0.90
getMethod · 0.90
setMethod · 0.90
_executeCommandMethod · 0.90
#shouldReconnectMethod · 0.90
#connectMethod · 0.90
setMaintenanceTimeoutMethod · 0.90
#onSocketErrorMethod · 0.90
destroySocketMethod · 0.90
executeMethod · 0.90

Calls 1

publishMethod · 0.80

Tested by

no test coverage detected