The composite query+supplier cache key to delete.
Resolves once the row is gone.
await deleteSupplierQueryCacheEntry("acetone|Loudwolf");
export async function deleteSupplierQueryCacheEntry(cacheKey: string): Promise<void> {
try {
const db = await getDB();
await db.delete(IDB_STORE.SUPPLIER_QUERY_CACHE, cacheKey);
} catch (error) {
logger.error('Failed to delete supplier query cache entry from IndexedDB', { error });
}
}
Removes a single supplier query-cache entry, e.g. when it fails TTL validation.