Skip to content

Function: setDefaultRelationsCacheService()

ts
function setDefaultRelationsCacheService(
  resolver: RelationsCacheServiceResolver | null,
): void;

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

The host application calls this once at boot. Passing null clears the default (used by tests). Models without their own relationsCacheService fall back to this resolver via the precedence chain.

Parameters

ParameterTypeDescription
resolver| RelationsCacheServiceResolver | nullThe default resolver, or null to clear it.

Returns

void