STRUCT
CacheProfile
Contents
- Properties
basetargetQueries
- Methods
profile(_:and:)
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.
Methods
profile(_:and:)
swift
public static func profile(
_ base: BaseCacheProfile = .onlyExternal,
and targetQueries: [TargetQuery] = []
) -> Self