STRUCT
Cache.Profile
Contents
- Properties
nameconfigurationplatformsscriptsoptionsdescription
- Methods
init(name:configuration:platforms:scripts:options:)profile(name:configuration:platforms:scripts:options:)
swift
public struct Profile: Codable, Hashable, CustomStringConvertibleA cache profile.
Properties
name
swift
public var name: StringThe unique name of a profile
configuration
swift
public var configuration: StringThe configuration to be used when building the project during a caching warmup
platforms
swift
public var platforms: [Platform: PlatformOptions]The platforms this target support and target platform options
scripts
swift
public var scripts: [RunScript]Scripts to run before warming up the cache
options
swift
public var options: OptionsAdditional options for cache profile
description
swift
public var description: StringMethods
init(name:configuration:platforms:scripts:options:)
swift
public init(
name: String,
configuration: String,
platforms: [Platform: PlatformOptions],
scripts: [RunScript] = [],
options: Options = .options()
)profile(name:configuration:platforms:scripts:options:)
swift
public static func profile(
name: String,
configuration: String,
platforms: [Platform: PlatformOptions],
scripts: [RunScript] = [],
options: Options = .options()
) -> ProfileReturns a Cache.Profile instance.
- Parameters:
- name: The unique name of the cache profile
- configuration: The configuration to be used when building the project during a caching warmup
- platforms: Dictionary of platforms with platform options: e.g. arch, device, os
- scripts: Scripts to run before warming up the cache
- options: Additional options for cache profile
- Returns: The
Cache.Profileinstance
Parameters
| Name | Description |
|---|---|
| name | The unique name of the cache profile |
| configuration | The configuration to be used when building the project during a caching warmup |
| platforms | Dictionary of platforms with platform options: e.g. arch, device, os |
| scripts | Scripts to run before warming up the cache |
| options | Additional options for cache profile |
