Skip to main content

Interface: MemoizeOptions<K>

Defined in: memo/types.ts:23

Options for memoization functions.

Type Parameters

K

K = string

Properties

cache?

optional cache: Cache<K, unknown>

Defined in: memo/types.ts:28

Custom cache implementation. Defaults to a simple Map.


maxSize?

optional maxSize: number

Defined in: memo/types.ts:34

Maximum number of cached entries (for built-in Map cache). When exceeded, oldest entries are removed.


ttl?

optional ttl: number

Defined in: memo/types.ts:40

Time-to-live for cached entries in milliseconds. Entries are removed after this duration.