The settings to instantiate the Momento standard cache.

Hierarchy

  • MomentoCacheProps

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.

ttlSeconds?: number

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

Generated using TypeDoc