Skip to main content

Interface: IAIProfileStoreConfig

Defined in: internal/ai-profile-store/types.ts:10

Configuration of the AIProfileStore. Lands in IAIGatewayConfig.aiProfileStore.

Properties​

cacheTtlMs?​

optional cacheTtlMs?: number

Defined in: internal/ai-profile-store/types.ts:24

How long a tenant's profiles stay cached in memory, in milliseconds.

Every call loads a profile; the repository is read once per tenant and TTL, not once per call.

An admin write on this instance drops the tenant's cache at once; another instance sees it after its TTL.

Example​

5_000 - an admin screen that wants its own edits visible fast on every instance

Default​

30_000

repository​

repository: IAIProfileRepository

Defined in: internal/ai-profile-store/types.ts:12

Persistence of the profiles: the host's adapter (in memory for the tests and the first run, a database in production).