@clickup/ent-framework
Version:
A PostgreSQL graph-database-alike library with microsharding and row-level security
17 lines • 568 B
TypeScript
/**
* Holds an auto-expiring map of VC caches.
*/
export declare class VCCaches<TKey, TValue> extends Map<TKey, TValue> {
private expirationMs;
constructor(expirationMs: number);
/**
* Calls the Map's get() and defers cache clearing to the next WeakTicker
* tick (i.e. schedules clearing on inactivity).
*/
get(key: TKey): TValue | undefined;
/**
* Called periodically after VC#cache() was called at least once.
*/
onTick(tickNoSinceScheduling: number): "keep" | "unschedule";
}
//# sourceMappingURL=VCCaches.d.ts.map