Skip to content

Function: setDefaultOnRelationsCacheEvent()

ts
function setDefaultOnRelationsCacheEvent(
  handler: RelationsCacheEventHandler | null,
): void;

Registers (or clears) the process-wide default relation-cache event handler.

The host calls this once at boot; passing null clears it (used by tests). Absent any handler the event is simply dropped — the package never logs on its own.

Parameters

ParameterTypeDescription
handler| RelationsCacheEventHandler | nullThe default event handler, or null to clear it.

Returns

void