CODE_CACHE_MAX_ENTRIES

const
Components

Maximum entries kept by the per-singleton LRU cache in useCode. 64 is large enough for a page with dozens of small snippets while keeping memory under ~1 MB of pre-rendered HTML.

TypeScript

Definition

The TypeScript definition as found in the origam source. Click the copy icon to copy the snippet.

typescript

Resolved value

Ecosystem

Used by

Composables and components that consume this constant.

  • OrigamCode

Usage

Examples

Ready-to-paste code snippets using this constant.

The LRU cache size used internally by useCode

typescript