The setRepoCachePolicy() GraphQL mutation is used to set the cache policy of a repository. This field is not yet available. It's described here as a preview and is used only for internal testing. Cache policies are a limited feature and is subject to change.

For information on configuring a cache, see the CACHE_STORAGE_DIRECTORY reference page.

Syntax

Below is the syntax for the setRepoCachePolicy() mutation field:

setRepoCachePolicy(input: SetRepoCachePolicyInput!): boolean!

Given Datatypes

For the given datatype, SetRepoCachePolicyInput, there are several parameters that may be given. Below is a list of them along with their datatypes and a description of each:

Table: SetRepoCachePolicyInput

ParameterTypeRequired[a]DefaultDescription
repositoryNamestringyes The name of the repository.
policyCachePolicyInputyes The organization's default cache policy to set. (see CachePolicyInput Table).

[a] Some arguments may be required, as indicated in this column. For some fields, this column indicates that a result will always be returned for it.