UNPKG

chronik-cache

Version:

A cache helper for chronik-client

19 lines (18 loc) 648 B
export declare const CACHE_STATUS: { readonly UNKNOWN: "UNKNOWN"; readonly LATEST: "LATEST"; readonly UPDATING: "UPDATING"; readonly REJECT: "REJECT"; }; export type CacheStatusType = typeof CACHE_STATUS[keyof typeof CACHE_STATUS]; export declare const DEFAULT_CONFIG: { readonly MAX_TX_LIMIT: 10000; readonly MAX_CACHE_SIZE: 512; readonly DEFAULT_PAGE_SIZE: 200; readonly CACHE_DIR: "./.cache"; readonly WS_TIMEOUT: 43000000; readonly WS_EXTEND_TIMEOUT: 1800000; readonly MAX_ITEMS_PER_KEY: 10000; readonly GLOBAL_METADATA_CACHE_LIMIT: 100; }; export type DefaultConfigType = typeof DEFAULT_CONFIG;