Skip to content

Function: cachedRecord()

cachedRecord<T>(key, loader): T | undefined

Load and cache a parsed record by caller-defined source identity.

Every result is cached, including empty records and undefined. Include every input that affects parsing in key, such as a file path plus a Databricks profile.

T extends Record<string, unknown>

string

() => T | undefined

T | undefined