Skip to content

Translation 🌍

이 페이지를 번역하거나 기존 번역을 개선할 수 있습니다.

기여

STRUCT

CacheProfile

Contents

swift
public struct CacheProfile: Codable, Equatable, Sendable

Properties

base

swift
public let base: BaseCacheProfile

The 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

Released under the MIT License.