ThemeCache: {
_config: { enabled: boolean; maxAge: number };
get(layerId: string, profileId?: string | null): Promise<unknown>;
store(
layerId: string,
profileId?: string | null,
data: string | object | ArrayBuffer,
metadata?: Record<string, unknown>,
): Promise<void>;
invalidate(layerId: string): Promise<void>;
} = ...
Type Declaration
-
_config: { enabled: boolean; maxAge: number }
-
get: function
-
get(layerId: string, profileId?: string | null): Promise<unknown>
Parameters
- layerId: string
OptionalprofileId: string | null
Returns Promise<unknown>
-
store: function
-
store( layerId: string, profileId?: string | null, data: string | object | ArrayBuffer, metadata?: Record<string, unknown>,): Promise<void>
Parameters
- layerId: string
OptionalprofileId: string | null
- data: string | object | ArrayBuffer
Optionalmetadata: Record<string, unknown> = {}
Returns Promise<void>
-
invalidate: function
-
invalidate(layerId: string): Promise<void>
Retrieves a layer from the cache si elle est encore valide.