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

    Class BaseCache<T>Abstract

    Type Parameters

    • T

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    cache: Map<string, CachedData<T>> = ...
    forceUpdateTimeout: number
    isDestroyed: boolean = false
    maxCacheSize: number = 30
    plugin: default

    Methods

    • 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[]