Skip to main content

CacheTask

Execute a job and store the result in a variable to reference later.

Input: None

Returns: The input

Example: CacheTask storing ${ONE} = 1

{
"cacheTask": {
"cacheItems": [
{
"variableName": "ONE",
"job": {
"tasks": [
{
"valueTask": {
"value": 1
}
}
]
}
}
]
}
}

See the CacheTask typescript definition in @switchboard-xyz/common

Fields

NameTypeDescription
 cacheItems

A list of cached variables to reference in the job with ${VARIABLE_NAME}.

Messages

 CacheItem

NameTypeDescription
 variableName

string

The name of the variable to store in cache to reference later with ${VARIABLE_NAME}.

 job

The OracleJob to execute to yield the value to store in cache.