refactor: preload with follow list

This commit is contained in:
2024-02-22 11:46:53 +00:00
parent 670898c016
commit 5e1af603b7
7 changed files with 18 additions and 17 deletions

View File

@ -1,6 +1,6 @@
{
"name": "@snort/shared",
"version": "1.0.13",
"version": "1.0.14",
"description": "Shared components for Snort",
"type": "module",
"module": "src/index.ts",

View File

@ -15,7 +15,7 @@ export interface CacheEvents {
}
export type CachedTable<T> = {
preload(): Promise<void>;
preload(follows?: Array<string>): Promise<void>;
keysOnTable(): Array<string>;
getFromCache(key?: string): T | undefined;
get(key?: string): Promise<T | undefined>;