Equation Citator v1.3.12 Documentation
    Preparing search index...

    Class BaseCache<T>Abstract

    Type Parameters

    • T

    Hierarchy (View Summary)

    Index
    cache: Map<string, CachedData<T>> = ...
    forceUpdateTimeout: number
    isDestroyed: boolean = false
    maxCacheSize: number = 30
    plugin: default
    • Retrieve data for a file, updating the cache if needed

      Parameters

      • sourcePath: string

      Returns Promise<T[] | undefined>

    • If use getDataForFile, this method will be called to parse the markdown into the desired data type

      Parameters

      • markdown: string

      Returns T[]

    • Parameters

      • sourcePath: string

      Returns Promise<void>