CacheStorageConfiguration
public struct CacheStorageConfiguration
Configuration settings determining how a persistent cache of a NavigationTileStore
is to be stored on disk.
Default values for CacheStorageConfiguration
members.
Declaration
Swift
public enum Defaults
The full path to the directory where the persistent cache and accompanying files are to be saved.
The directory must exist and be writable. If set to nil
, the default cache storage directory
will be used.
The default value is nil
.
Declaration
Swift
public let directoryURL: URL?
Creates an instance of CacheStorageConfiguration
.
Declaration
Swift
public init(
directoryURL: URL? = nil,
maxDiskSize: Measurement<UnitInformationStorage> = Defaults.maxDiskSize
)
Parameters
directoryURL
|
The full path to the directory where the persistent cache and
accompanying files are to be saved. The directory must exist and be
writable. If set to |
maxDiskSize
|
The maximum size allowed on disk. Defaults to |
The maximum size (on disk) of the persistent store that holds navigation related data.
The default value is Defaults.maxDiskSize
.
Declaration
Swift
public let maxDiskSize: Measurement<UnitInformationStorage>