# __CACHE_LAYOUTS

> `const` **\_\_CACHE_LAYOUTS**: `Readonly`<`Record`<[`CacheKind`](/reference/knotkit/cache/type-aliases/cachekind/), [`CacheFactory`](/reference/knotkit/cache/interfaces/cachefactory/)>>

Defined in: [packages/cache/src/layouts.ts:16](https://github.com/jkomyno/knotkit/blob/ef04dc6fd5182dca281abddf3e1dcb13118c15a4/packages/cache/src/layouts.ts#L16)

Every eviction policy, keyed by the `kind` a cache built from it reports.

Every factory takes the same options record, so `__CACHE_LAYOUTS[kind](options)` builds any policy. Iterate this table instead of naming factories one by one: a property sweep, a benchmark, or a caller comparing policies covers every entry, and a policy added to `CACHE_KINDS` fails to typecheck until it is enrolled here too.
