Cache Write

The Cache Write node writes key/value pairs to the global cache, or to the flow variables based on the scope property

The Cache Write node consists of one input terminal, where the key values are pssed, aon one output terminal. The node propogates data from inptut terminal to the output terminal.

Data is sent to the Input terminal as a set of keys and values. If the Key Prefix property is set, it is perpended to each key value to provide name-spacing.

Example 1: If the Data Format is delimited, and the delimiters are set to defaults, and the data format is expressed as follows:
Key1,Value1\n
Key2,Value2

The record delimiter is an option on the last record.

Example 2: If the Data Format is a JSON array
[
  {
    "key": "Key1",
    "value": "Value1"
  },
  {
    "key": "Key2",
    "value": "Value2"
  }
]

Key1 is set to Value2 and so forth.

Example 3: If the Data Format is a JSON Object.

{ “Key1”:”Value1”, Key2:123 }

Key1 value is set to string “Value1” and Key2 integer value 123 is set to string “123”.

All cache values are stored as strings, but the value provided could be in any format supported by JSON.

Example 4: If the Data Format is None, a new property Key is displayed. The entire input is written to the key. A flow variables can be used to define a key.

Scope = Cache

Key = Code%COLOR%

%COLOR% = “Red”

Input data sent to the terminal is: “Extremely Hot Temperature”

The node will create cache entry:

CodeRed=”Extremely Hot Temperature”