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
| Parameter | Type |
|---|---|
tag | string |
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
| Parameter | Type |
|---|---|
key | string |
tags | readonly string[] |
load | () => Promise<T> |
Returns
Promise<T>