The key type
The value type
The context type
ReadonlycreateFactory function that creates a value for a given key.
Called once per unique key when the value is first accessed. The function receives a KeyedNgItem with value initially undefined.
The item containing key, context, and placeholder for value
The created value instance
Optional Readonlykey2stringOptional function to convert keys to strings for internal storage.
If not provided, uses default conversion:
Optional ReadonlyctxOptional default context passed to value creation.
Can be overridden on a per-get basis. Defaults to empty object.
Optional ReadonlyresetOptional ReadonlylruOptional LRU cache configuration.
When provided, the collection will automatically evict least-recently-used items when size limits are exceeded.
Configuration options for creating a KeyedNg instance.
Example