Skip to content

Get Shared Memory

Overview

Get Shared memory node retrieve value stored in global memory under specified key. Different nodes can read and write (using Set Shared Memory Node) to the same value in memory that is shared by having same key.

Use Get Shared Memory when:

  • You need to store values between consecutive detection iterations
  • You need to share node state between multiple nodes in same or different Flows.

💡 Tip

Ensure that all nodes that need to access same shared memory use same unique key, and no other nodes use it to prevent data collisions.

Outputs

NameTypeDescription
valuedynamicReturns the stored value from memory.

Parameters

ParameterDefaultValid valuesTunable
Value typestringstring, number, boolean
Memory key""string
Enable automatic state resetfalseboolean

Value type

The data type of the stored value.

Memory key

A key or identifier that determines which value in memory to use. Ensure that all nodes sharing data have same key and that key is unique and not reused by different node groups.

Enable automatic state reset

Resets the node state when the flow state resets, cleaning up previously stored results that were only temporary.

Example

Multi-flow coordination

A setup process in one flow saves product type value to shared memory. Another flow retrieves this value using the Get Shared Memory node to determine which logic is run based on stored product type.

Configuration:

  • Value type: number
  • Memory key: product_type

Result: Get Shared Memory outputs the current numeric (as set in Value Type) value stored under the specified key, allowing other Set Shared Memory Nodes to set the shared configuration.

Reference: