API Stability Preview

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:

graphql
setRepoCachePolicy(
     input: SetRepoCachePolicyInput!
   ): boolean!

Below is an example of how this mutation field might be used:

Show:
graphql
mutation {
  setRepoCachePolicy( input:
    {
       repositoryName: "humio",
       prioritizeMillis: 1000
    }
  )
}
Example Responses
Show:
json
{
  "data": {
    "setRepoCachePolicy": true
  }
}

Given Datatypes

SetRepoCachePolicyInput has a couple of parameters. Below is a list of them along with a description of each:

Table: SetRepoCachePolicyInput

ParameterTypeRequiredDefaultStabilityDescription
Some arguments may be required, as indicated in the Required column. For some fields, this column indicates that a result will always be returned for this column.
Table last updated: Sep 19, 2024
policyCachePolicyInputyes PreviewThe organization's default cache policy to set. See CachePolicyInput.
repositoryNamestringyes PreviewThe name of the repository.