# Configuration Source: https://www.nianticspatial.com/docs/api/swift/NSDK.NSDKMeshDownloader.struct-Configuration/ Configuration --- ## Declaration struct Configuration ## Summary Settings for the mesh downloader's on-disk cache. Downloaded geometry and textures are cached per graph node, so revisiting a location reads from disk instead of the CDN, and an interrupted download resumes where it stopped rather than starting over. Cached content never goes stale: a re-run of the mapping pipeline publishes new node ids, so an id always names the same geometry. Caching is off by default. A downloader acquired without it does not read, write, or delete anything in the cache directory, so enabling caching in one session and not the next leaves previously cached data intact. --- ## Constructors init(cacheEnabled: Bool = false, cacheMaxMb: UInt32 = 0) ### Parameters | Name | Type | Summary | | --- | --- | --- | | cacheEnabled | Bool | - | | cacheMaxMb | UInt32 | - | --- ## Properties | Name | Type | Summary | | --- | --- | --- | | var cacheEnabled | Bool | Whether to cache downloaded mesh data on disk. | | var cacheMaxMb | UInt32 | Maximum disk space the cache may use, in megabytes. Once exceeded, theleast-recently-used nodes are removed until the cache fits.Must be greater than zero when `cacheEnabled` is `true`.Size this above the total download size of the locations you expect to hold. A budgetsmaller than the working set does not degrade gracefully -- it evicts nodes that areabout to be needed again, and re-downloads them indefinitely. | ---