mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-27 18:31:15 +08:00
Add data lifecycle management to binary caching docs (#20733)
... as suggested by Robert @ras0219 / @ras0219-msft
This commit is contained in:
parent
1e421cc5d3
commit
33ced4f1c3
@ -10,7 +10,7 @@ Binary caching is especially effective when using Continuous Integration, since
|
||||
|
||||
Caches can be hosted in a variety of environments. The most basic examples are a folder on the local machine or a network file share. Caches can also be stored in any NuGet feed (such as GitHub or Azure DevOps Artifacts), Azure Blob Storage*, or Google Cloud Storage*.
|
||||
|
||||
\* (experimental)
|
||||
\* (experimental)
|
||||
|
||||
If your CI provider offers a native "caching" function, we recommend using both vcpkg binary caching and the native method for the most performant results.
|
||||
|
||||
@ -131,7 +131,7 @@ Next, you will need to create a feed for your project; see the [Azure DevOps Art
|
||||
variables:
|
||||
- name: VCPKG_BINARY_SOURCES
|
||||
value: 'clear;nuget,<FEED_URL>,readwrite'
|
||||
|
||||
|
||||
steps:
|
||||
# Remember to add this task to allow vcpkg to upload archives via NuGet
|
||||
- task: NuGetAuthenticate@0
|
||||
@ -171,6 +171,8 @@ Vcpkg will attempt to avoid revealing the SAS during normal operations, however:
|
||||
1. It will be printed in full if `--debug` is passed
|
||||
2. It will be passed as a command line parameter to subprocesses, such as `curl.exe`
|
||||
|
||||
Azure Blob Storage includes a feature to remove cache entries that haven't been accessed in a given number of days which can be used to reduce the size of your cache. See [Data Lifecycle Management on Microsoft Docs](https://docs.microsoft.com/en-us/azure/storage/blobs/lifecycle-management-overview) for more information, or look for "Data management > Lifecycle management" in the Azure Portal for your storage account. If you wish to be able to be resilient to upstream libraries' servers but still want to remove entries from the binary cache, consider using [asset caching](assetcaching.md#x-azurl) in a different storage account without a lifecycle management policy.
|
||||
|
||||
### Google Cloud Storage (experimental)
|
||||
|
||||
> Note: This is an experimental feature and may change or be removed at any time
|
||||
|
Loading…
x
Reference in New Issue
Block a user