refactor: preload with follow list
This commit is contained in:
@ -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",
|
||||
|
@ -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>;
|
||||
|
Reference in New Issue
Block a user