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