Skip to content
module@warp-drive/core

Function setIdentifierForgetMethod() ​

ts
function setIdentifierForgetMethod(method: ForgetMethod | null): void;

Defined in: warp-drive-packages/core/src/store/-private/managers/cache-key-manager.ts:321

Configure a callback for when the identifier cache is going to release an identifier.

This configuration MUST occur prior to the store instance being created.

js
import { setIdentifierForgetMethod } from '@warp-drive/core';

Takes method which can expect to receive an existing Identifier that should be eliminated from any secondary lookup tables or caches that the user has populated for it.

Parameters ​

method ​

ForgetMethod | null

Returns ​

void

Released under the MIT License.