Kaizen
Browse modulesCMScms/serverInterfaces

Interface: ContentCache

Defined in: server/cms/types.ts:49

Tagged cache shared by the Payload config hooks and content reader.

Methods

invalidateTag()

invalidateTag(tag: string): void | Promise<void>;

Defined in: server/cms/types.ts:55

Parameters

ParameterType
tagstring

Returns

void | Promise<void>


read()

read<T>(
   key: string, 
   tags: readonly string[], 
   load: () => Promise<T>
): Promise<T>;

Defined in: server/cms/types.ts:50

Type Parameters

Type Parameter
T

Parameters

ParameterType
keystring
tagsreadonly string[]
load() => Promise<T>

Returns

Promise<T>

On this page