MetadataCache.blockCache
...

app
...

cache
...

getForFile
...

Get the text content and a parsed syntax tree for the given file, and then store the result to `cache`.

getForFile(runnable: Runnable, file: TFile): Promise<any>;

Console example:

await app.metadataCache.blockCache.getForFile({isCancelled: () => false}, app.workspace.getActiveFile());

getAll
...

clear
...

Clear the `cache`, i.e.

this.cache = {};