Photo Sphere Viewer
    Preparing search index...

    Variable CacheConst

    Cache: {
        enabled: boolean;
        items: Record<
            string,
            { files: Record<string, HTMLImageElement | Blob>; lastAccess: number },
        >;
        maxItems: number;
        purgeInterval: Timeout;
        ttl: number;
        add(url: string, key: string, data: HTMLImageElement | Blob): void;
        get(url: string, key: string): HTMLImageElement | Blob;
        init(): void;
        purge(): void;
        remove(url: string, key: string): void;
    } = ...

    Type declaration

    • enabled: boolean
    • items: Record<
          string,
          { files: Record<string, HTMLImageElement | Blob>; lastAccess: number },
      >
    • maxItems: number
    • purgeInterval: Timeout
    • ttl: number
    • add: function
      • Parameters

        • url: string
        • key: string
        • data: HTMLImageElement | Blob

        Returns void

    • get: function
    • init: function
    • purge: function
    • remove: function