STRUCT
CacheProfile
Contents
- Properties
basetargetQueriesexceptTargetQueries
- Methods
profile(_:and:except:)
swift
public struct CacheProfile: Codable, Equatable, SendableProperties
base
swift
public let base: BaseCacheProfileThe base cache replacement policy
targetQueries
swift
public let targetQueries: [TargetQuery]Target names or tags to replace with cached binaries (in addition to base behavior). Use .named("MyTarget") or .tagged("MyTag").
String literals like "MyTarget" and "tag:MyTag" are supported via ExpressibleByStringLiteral.
exceptTargetQueries
swift
public let exceptTargetQueries: [TargetQuery]Target names or tags to exclude from binary caching. These exceptions override both the base profile behavior and any targets specified in targetQueries. Use .named("MyTarget") or .tagged("MyTag").
String literals like "MyTarget" and "tag:MyTag" are supported via ExpressibleByStringLiteral.
Methods
profile(_:and:except:)
swift
public static func profile(
_ base: BaseCacheProfile = .onlyExternal,
and targetQueries: [TargetQuery] = [],
except exceptTargetQueries: [TargetQuery] = []
) -> Self