CacheStorageConfiguration

public struct CacheStorageConfiguration

Configuration settings determining how a persistent cache of a NavigationTileStore is to be stored on disk.

  • 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 nil, the default cache storage directory will be used. Defaults to nil.

    maxDiskSize

    The maximum size allowed on disk. Defaults to Defaults.maxDiskSize.

  • Default values for CacheStorageConfiguration members.

    See more

    Declaration

    Swift

    public enum Defaults
  • 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>
  • 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?