Constructors
Properties
ProtectedforceUpdateTimeout
forceUpdateTimeout: number
isDestroyed
isDestroyed: boolean = false
ProtectedmaxCacheSize
maxCacheSize: number = 30
Methods
delete
delete(key: string): boolean
get
get(key: string): FootNote[] | undefined
getCacheStats
getCacheStats(): { newestEntry?: number; oldestEntry?: number; size: number } Returns { newestEntry?: number; oldestEntry?: number; size: number }
ProtectedgetCacheTypeName
getCacheTypeName(): string
getDataForFile
getDataForFile(sourcePath: string): Promise<FootNote[] | undefined>
ProtectedparseMarkdown
parseMarkdown(markdown: string): FootNote[]
set
set(key: string, data: FootNote[]): void
updateCache
updateCache(sourcePath: string): Promise<void>
Get statistcs about the cache