The cache to save.
export function saveTitleNormalizationCache(
cache: TitleNormalizationCache,
): void {
try {
storage.setItem(
STORAGE_KEYS.TITLE_NORMALIZATION_CACHE,
JSON.stringify(cache),
);
console.info(
`[Storage] 💾 Saved title normalization cache with ${Object.keys(cache.caches).length} algorithms`,
);
} catch (error) {
console.error("[Storage] ❌ Error saving title normalization cache", error);
}
}
Saves the title normalization cache to storage. Applies worker-produced deltas to update the cache incrementally.