Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface CacheManagerOptions

Interface defining Cache Manager configuration options.

publicapi

Hierarchy

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