Skip to content

Type Alias: CacheKey

ts
type CacheKey = Brand<string, "CacheKey">;

Defined in: common.ts:53

A key as the cache store addresses it, without the configured keysPrefix.

Providers must return keys in this form. @keyv/redis tracks keys internally as fully qualified redis keys ("keyv:/api/foo"), and returning that form meant purge regexes matched nothing while the deletes addressed keys that did not exist.

See

https://github.com/strapi-community/plugin-rest-cache/issues/131