The settings to instantiate the Momento chat message history.

Hierarchy

  • MomentoChatMessageHistoryProps

Properties

cacheName: string

The name of the cache to use to store the data.

client: ICacheClient

The Momento cache client.

sessionId: string

The session ID to use to store the data.

ensureCacheExists?: true

If true, ensure that the cache exists before returning. If false, the cache is not checked for existence. Defaults to true.

sessionTtl?: number

The time to live for the cache items in seconds. If not specified, the cache client default is used.

Generated using TypeDoc