BlockCache
Official
The cache of the block in the note.
markdown foo ^bar
Import:
import type { BlockCache } from 'obsidian';Signature:
export interface BlockCache extends CacheItemExtends: CacheItem
Properties
| Property | Type | Description | |
|---|---|---|---|
| app | App | Reference to the obsidian#App. | |
| cache | unknown | Internal cache data for block references. | |
| id | string | The ID of the block. | |
| position | Pos | Position of this item in the note. (Inherited from CacheItem) |
Methods
| Method | Returns | Description | |
|---|---|---|---|
| clear() | void | Clears the block cache. | |
| getAll(cancelContext) | AsyncGenerator<unknown> | Iterates the block cache for every markdown file in the vault. | |
| getForFile(cancelContext, file) | Promise<unknown> | Gets the block cache for a file, reading and caching it if needed. |
Links to this page: