Skip to content

Class: CacheKeysConfig

Defined in: CacheKeysConfig.ts:3

Constructors

Constructor

ts
new CacheKeysConfig(options?): CacheKeysConfig;

Defined in: CacheKeysConfig.ts:19

Parameters

ParameterType
optionsCacheKeysConfigInput

Returns

CacheKeysConfig

Properties

PropertyTypeDefault valueDescriptionDefined in
useAuthbooleanfalseInclude the authenticated caller's identity in the cache key. Only relevant when hitpass is disabled, since the default hitpass never caches an authenticated request. Without it, two callers authorised for the same route share one entry. See https://github.com/strapi-community/plugin-rest-cache/issues/113CacheKeysConfig.ts:17
useHeadersstring[][]-CacheKeysConfig.ts:4
useQueryParamsboolean | string[]true-CacheKeysConfig.ts:6