Libraries
    Preparing search index...

    Interface ExternalCacheTagsOptions

    Configuration for externalCacheTags.

    interface ExternalCacheTagsOptions {
        condition?: (response: Response) => boolean;
        invalidateBaseTags?: boolean;
        invalidateTag: (tag: string) => void | Promise<void>;
    }
    Index

    Properties

    condition?: (response: Response) => boolean

    Predicate that decides whether a response should trigger invalidation.

    (response) => response.ok

    invalidateBaseTags?: boolean

    Also invalidate the base tag name when a dynamic tag key is computed.

    true

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

    Callback invoked for each tag that should be invalidated in an external cache system.

    Pass any framework or platform cache invalidation function here. For example, Next.js users can pass revalidateTag from next/cache.