UNPKG

@dpkit/core

Version:

Fast TypeScript data management framework built on top of the Data Package standard and Polars DataFrames

9 lines (7 loc) 311 B
import QuickLRU from "quick-lru" import type { Descriptor } from "../descriptor/Descriptor.ts" import { profileRegistry } from "./registry.ts" export const cache = new QuickLRU<string, Descriptor>({ maxSize: 100 }) for (const { path, profile } of Object.values(profileRegistry)) { cache.set(path, profile) }