+
+ invalidateCache (deleteKey: DeleteKey, modelId: number) {
+ const map = this.deleteIds[deleteKey]
+
+ if (!map.has(modelId)) return
+
+ for (const toDelete of map.get(modelId)) {
+ logger.debug('Removing %s -> %d of model cache %s -> %s.', deleteKey, modelId, toDelete.cacheType, toDelete.key)
+ this.localCache[toDelete.cacheType].delete(toDelete.key)
+ }
+
+ map.delete(modelId)
+ }