Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
salazarm committed Mar 8, 2025
1 parent d9894e1 commit 05e6903
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion js_modules/dagster-ui/packages/ui-core/src/app/Util.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -148,13 +148,14 @@ export function asyncMemoize<T, R, U extends (arg: T, ...rest: any[]) => Promise
export function indexedDBAsyncMemoize<R, U extends (...args: any[]) => Promise<R>>(
fn: U,
hashFn?: (...args: Parameters<U>) => any,
key?: string,
): U & {
isCached: (...args: Parameters<U>) => Promise<boolean>;
} {
let lru: ReturnType<typeof cache<R>> | undefined;
try {
lru = cache<R>({
dbName: 'indexDBAsyncMemoizeDB',
dbName: `indexDBAsyncMemoizeDB${key}`,
maxCount: 50,
});
} catch {}
Expand Down

0 comments on commit 05e6903

Please sign in to comment.