CachingConfiguration

constructor()

Creates a default CachingConfiguration.


constructor(storageConfiguration: CacheStorageConfiguration = DEFAULT_CACHE_STORAGE_CONFIGURATION, maxMemorySize: Memory = DEFAULT_CACHE_MEMORY_MAX_SIZE, refreshPeriod: Duration = DEFAULT_TILE_REFRESH_PERIOD)

Parameters

maxMemorySize

A non-negative integer defining the size limit for the in-memory tile store. The parameter defaults to DEFAULT_CACHE_MEMORY_MAX_SIZE. It acts as a soft limit, ensuring that essential data is preserved in memory even if the specified limit is exceeded. A very small limit may lead to increased disk reading, as tiles are promptly removed from memory once they are no longer immediately required. An excessively high limit may result in tiles occupying a significant amount of memory over an extended period.