Skip to main content

Interface: ICacheConfig

Defined in: src/types/runtime.ts:36

Controls the LRU cache that keeps loaded miniapp iframes alive across navigation, avoiding re-download and re-bootstrap on revisit.

When omitted from IRuntimeConfig, caching is disabled entirely.

Properties

disabledPackageIds?

optional disabledPackageIds?: string[]

Defined in: src/types/runtime.ts:42

Package IDs that should never be cached (e.g., stateful miniapps that must always start fresh)


maxAge?

optional maxAge?: number

Defined in: src/types/runtime.ts:40

Maximum age (in milliseconds) before a cached iframe is evicted


maxSize?

optional maxSize?: number

Defined in: src/types/runtime.ts:38

Maximum number of miniapp iframes to keep in the cache