attachCache

suspend fun ContentManager.attachCache(layer: TiledImageLayer, contentKey: String, cachePolicy: CachePolicy = CachePolicy.UNBOUNDED)

Register a tiled image layer (WMS / WMTS / WebMercator).


suspend fun ContentManager.attachCache(layer: VectorLayer, contentKey: String, cachePolicy: CachePolicy = CachePolicy.UNBOUNDED)

Register a vector layer. Dispatches by concrete subtype to record the right service-identity row:


suspend fun ContentManager.attachCache(coverage: TiledElevationCoverage, contentKey: String, cachePolicy: CachePolicy = CachePolicy.UNBOUNDED, isFloat: Boolean = false)

Register a tiled elevation coverage.

Parameters

isFloat

First-creation hint for the gpkg dataType column (Int16 vs Float32). Defaults to false (Int16). On reopen of an existing cache row the stored value always wins; this hint is silently ignored. Cf. CacheEntry.isFloat.