The settings to instantiate the Momento chat message history.

interface MomentoChatMessageHistoryProps {
    cacheName: string;
    client: ICacheClient;
    ensureCacheExists?: true;
    sessionId: string;
    sessionTtl?: number;
}

Properties

cacheName: string

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

client: ICacheClient

The Momento cache client.

ensureCacheExists?: true

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

sessionId: string

The session ID to use to store the data.

sessionTtl?: number

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