Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface CacheModuleOptions

Hierarchy

Indexable

[key: string]: any

Index

Properties

Optional isCacheableValue

isCacheableValue: (value: any) => boolean

Type declaration

    • (value: any): boolean
    • Parameters

      • value: any

      Returns boolean

Optional max

max: number

Maximum number of responses to store in the cache. Defaults to 100.

Optional store

store: string | CacheStoreFactory

Cache storage manager. Default is 'memory' (in-memory store). See Different stores for more info.

Optional ttl

ttl: number

Time to live - amount of time in seconds that a response is cached before it is deleted. Subsequent request will call through the route handler and refresh the cache. Defaults to 5 seconds.

Generated using TypeDoc