Class: CacheKeysConfig
Defined in: CacheKeysConfig.ts:3
Constructors
Constructor
ts
new CacheKeysConfig(options?): CacheKeysConfig;Defined in: CacheKeysConfig.ts:19
Parameters
| Parameter | Type |
|---|---|
options | CacheKeysConfigInput |
Returns
CacheKeysConfig
Properties
| Property | Type | Default value | Description | Defined in |
|---|---|---|---|---|
useAuth | boolean | false | Include 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/113 | CacheKeysConfig.ts:17 |
useHeaders | string[] | [] | - | CacheKeysConfig.ts:4 |
useQueryParams | boolean | string[] | true | - | CacheKeysConfig.ts:6 |