Skip to main content

Caching tasks

Caching tasks allows store variables to be cached for a certain period of time. This is useful when you want to cache the result of a task and reuse it later.

task: "Caching/SetCache@1"
name: setCache
inputs:
name: "getData.results"
values:
key: "data"
scope: "execution" # organization, workflow, execution
value: "Hello World"

The setCache task caches the value Hello World with the key data in the store variable getData.results.

task: "Caching/GetCache@1"
name: getCache
inputs:
key: "data"
outputs:
- name: "data"
mapping: "getData.results"