Refactor workspace cache service (#16208)

## Context
We've recently introduced a new workspace cache service which now acts
as a cache access and local storage for all workspace related data,
deprecating the individual specific services.
- Better performance through multiple caching/fetching strategies
- Consistent data access patterns across the codebase
- Reduced redis queries through MGET/MSET/PIPELINE with multiple cache
keys
This commit is contained in:
Weiko
2025-12-01 17:08:21 +01:00
committed by GitHub
parent 4e0545ebc5
commit 1eb2e44058
77 changed files with 1306 additions and 1863 deletions
@@ -96,6 +96,12 @@ export class PromiseMemoizer<T> {
await this.clearKey(cacheKey, onDelete);
}
}
for (const cacheKey of [...this.pending.keys()]) {
if (cacheKey.startsWith(cacheKeyPrefix)) {
this.pending.delete(cacheKey);
}
}
}
async clearAll(onDelete?: (value: T) => Promise<void> | void): Promise<void> {