UNPKG

@aziontech/opennextjs-azion

Version:
16 lines (15 loc) 693 B
import { CacheEntryType, CacheValue } from "@opennextjs/aws/types/overrides.js"; export type IncrementalCacheEntry<CacheType extends CacheEntryType> = { value: CacheValue<CacheType>; lastModified: number; }; export declare const debugCache: (name: string, ...args: unknown[]) => void; export declare const FALLBACK_BUILD_ID = "no-build-id"; export declare const DEFAULT_PREFIX = "incremental-cache"; export declare const NAME_FILE_TAG_MANIFEST = "cache-tags-manifest.cache"; export type KeyOptions = { cacheType?: CacheEntryType; prefix: string | undefined; buildId: string | undefined; }; export declare function computeCacheKey(key: string, options: KeyOptions): string;