Skip to content

TFile.cache method

TFile › cache

Unofficial

Caches file's content, that can be retrieved via await app.vault.cachedRead(file).

Signature:

cache(content: string | null): void

Parameters:

Parameter Type Description
content string | null The content to cache. If null, the cache is cleared.

Returns: void