StateMachine icon

StateMachine

Get, send and update data in Redis

Store (Deprecated)

AI-generated

Summary

Stores the configured value in Redis if its derived key does not already exist, and returns the stored value in json.state. This operation is deprecated; it uses the required Redis credentials and the hidden execution ID, and can optionally set a TTL when expiration is enabled.

Inputs

  • Value (required) — The value used to derive the Redis key and, when the key is absent, stored as a string.
  • Global Statement — Defaults to true. Selects global state; when false, the key is scoped to the current workflow.
  • TTL — Shown when expiration is enabled. Number of seconds before key expiration; defaults to 86400.
  • Execution ID (required) — Hidden parameter defaulting to the current execution ID; used to record the key for error cleanup.
  • Redis credentials (required) — Redis connection settings used by the node.

Output shape

A list of items, each with json.state set to the stored value when the key is absent.

The key is derived from the SHA-256 hash of the configured Value when workflow-scoped. When Global Statement is true, the implementation uses the literal key n8n-state-global-*. If the key already exists, this operation adds no output item for that input. Although the UI exposes TTL for this operation when expiration is enabled, the source does not expose the Expire property for the deprecated Store operation, so expiration may not be configurable through this operation.

Links

Discussion