CacheManagerOptions
Interface defining Cache Manager configuration options.
interface CacheManagerOptions {
store?: string | CacheStoreFactory | CacheStore
ttl?: number
max?: number
isCacheableValue?: (value: any) => boolean
}
Properties
Property | Description |
---|---|
store?: string | CacheStoreFactory | CacheStore
|
Cache storage manager. Default is |
ttl?: number
|
Time to live - amount of time 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. In |
max?: number
|
Maximum number of responses to store in the cache. Defaults to 100. |
isCacheableValue?: (value: any) => boolean
|