Documentation
    Preparing search index...

    Interface CacheStorageNappletArtifactCacheOptions

    Constructor options for CacheStorageNappletArtifactCache.

    interface CacheStorageNappletArtifactCacheOptions {
        baseUrl?: string;
        cacheName?: string;
        cacheStorage?: CacheStorage;
        hardCeilingBytes?: number;
        now?: () => number;
        onDiagnostic?: (diagnostic: NappletCacheDiagnostic) => void;
        softCeilingBytes?: number;
        storage?: StorageManager;
        unknownBudgetBytes?: number;
    }

    Hierarchy (View Summary)

    Index

    Properties

    baseUrl?: string

    Base URL used to construct synthetic cache keys.

    cacheName?: string

    Cache Storage namespace.

    cacheStorage?: CacheStorage

    Cache Storage implementation; defaults to globalThis.caches.

    hardCeilingBytes?: number

    Hard cache ceiling in bytes.

    now?: () => number

    Clock used for timestamps.

    onDiagnostic?: (diagnostic: NappletCacheDiagnostic) => void

    Diagnostic callback for non-fatal cache failures.

    softCeilingBytes?: number

    Soft cache ceiling in bytes.

    storage?: StorageManager

    Storage manager used for quota estimates; defaults to navigator.storage.

    unknownBudgetBytes?: number

    Budget used when storage estimates are unavailable.