@directus/api
Version:
Directus is a real-time API and App dashboard for managing SQL database content
11 lines (10 loc) • 414 B
TypeScript
import type Keyv from 'keyv';
import type { MutationOptions } from '@directus/types';
/**
* Check whether cache should be cleared
*
* @param cache Cache instance
* @param opts Mutation options
* @param collection Collection name to check if cache purging should be ignored
*/
export declare function shouldClearCache(cache: Keyv<any> | null, opts?: MutationOptions, collection?: string): cache is Keyv<any>;