Skip to content

Class: CacheContentTypeConfig

Defined in: CacheContentTypeConfig.ts:7

Constructors

Constructor

ts
new CacheContentTypeConfig(options?): CacheContentTypeConfig;

Defined in: CacheContentTypeConfig.ts:35

Parameters

ParameterType
optionsCacheContentTypeConfigInput

Returns

CacheContentTypeConfig

Properties

PropertyTypeDefault valueDescriptionDefined in
contentType`${string}::${string}.${string}`undefined-CacheContentTypeConfig.ts:31
hitpassboolean | CachePluginHitpassfalse-CacheContentTypeConfig.ts:23
injectDefaultRoutesbooleantrue-CacheContentTypeConfig.ts:10
keysCacheKeysConfigundefined-CacheContentTypeConfig.ts:25
maxAgeMillisecondsundefinedMilliseconds. 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/126CacheContentTypeConfig.ts:21
plugin?stringundefined-CacheContentTypeConfig.ts:27
relatedContentTypeUidstring[][]-CacheContentTypeConfig.ts:33
routesCacheRouteConfig[][]-CacheContentTypeConfig.ts:29
singleTypebooleanfalse-CacheContentTypeConfig.ts:8