GeoLeaf Core API - v3.0.0
    Preparing search index...

    Variable ThemeCacheConst

    ThemeCache: {
        _config: { enabled: boolean; maxAge: number };
        get(layerId: string, profileId?: string | null): Promise<unknown>;
        store(
            layerId: string,
            profileId?: string | null,
            data: unknown,
            metadata?: Record<string, unknown>,
        ): Promise<void>;
        invalidate(layerId: string): Promise<void>;
    } = ...

    Type Declaration

    • _config: { enabled: boolean; maxAge: number }
    • get: function
      • Retrieves a layer from the cache si elle est encore valide.

        Parameters

        • layerId: string
        • OptionalprofileId: string | null

        Returns Promise<unknown>

    • store: function
      • Stocke a layer in the cache.

        Parameters

        • layerId: string
        • OptionalprofileId: string | null
        • data: unknown
        • Optionalmetadata: Record<string, unknown> = {}

        Returns Promise<void>

    • invalidate: function