Get Cached Document

amerta


amerta / amerta/payload/utilities/getDocument / getCachedDocument

Function: getCachedDocument()

getCachedDocument(collection, slug): () => Promise<any>

Defined in: amerta/payload/utilities/getDocument.ts:26

Returns a unstable_cache function mapped with the cache tag for the slug

Parameters

| Parameter | Type | | ------ | ------ | | collection | CollectionSlug | | slug | string |

Returns

(): Promise<any>

Returns

Promise<any>