UNPKG

@seasketch/geoprocessing

Version:

Geoprocessing and reporting framework for SeaSketch 2.0

8 lines (7 loc) 637 B
import { SketchProperties } from "../types/index.js"; /** * Generates a cache key for a geoprocessing request, given sketch properties and optional extra parameters (must be JSON compatible object) * Extra parameters are canonicalized and hashed using md5 to ensure cache key is consistent. Canonicalization ensures object keys are consistent * but not arrays. If you use arrays as extraParam values, make sure the order stays the same and sort first if needed to generate a consistent cache key. */ export declare const genTaskCacheKey: (service: string, props: SketchProperties, extraParams?: Record<string, unknown>) => string;