Class: CacheContentTypeConfig
Defined in: CacheContentTypeConfig.ts:7
Constructors
Constructor
ts
new CacheContentTypeConfig(options?): CacheContentTypeConfig;Defined in: CacheContentTypeConfig.ts:35
Parameters
| Parameter | Type |
|---|---|
options | CacheContentTypeConfigInput |
Returns
CacheContentTypeConfig
Properties
| Property | Type | Default value | Description | Defined in |
|---|---|---|---|---|
contentType | `${string}::${string}.${string}` | undefined | - | CacheContentTypeConfig.ts:31 |
hitpass | boolean | CachePluginHitpass | false | - | CacheContentTypeConfig.ts:23 |
injectDefaultRoutes | boolean | true | - | CacheContentTypeConfig.ts:10 |
keys | CacheKeysConfig | undefined | - | CacheContentTypeConfig.ts:25 |
maxAge | Milliseconds | undefined | Milliseconds. This defaulted to the boolean true here while the class field said 3600000, which through the provider became a one second TTL. The Milliseconds brand exists so that cannot recur. See https://github.com/strapi-community/plugin-rest-cache/issues/126 | CacheContentTypeConfig.ts:21 |
plugin? | string | undefined | - | CacheContentTypeConfig.ts:27 |
relatedContentTypeUid | string[] | [] | - | CacheContentTypeConfig.ts:33 |
routes | CacheRouteConfig[] | [] | - | CacheContentTypeConfig.ts:29 |
singleType | boolean | false | - | CacheContentTypeConfig.ts:8 |