Redis Advanced icon

Redis Advanced

Get, send and update data in Redis with enhanced operations

Get

AI-generated

Summary

Retrieve and return the value of a specified Redis key, supporting different Redis data types (string, hash, list, sets) and optionally using automatic type detection.

Inputs

  • propertyName (required) — Name of the property to write the retrieved data to in the output JSON, supporting dot-notation for nested assignment.
  • key (required) — The key name in Redis to get the value from.
  • keyType (required) — The data type of the key's value in Redis, which can be 'automatic' (detect type before fetching), 'hash', 'list', 'sets', or 'string'.
  • options — Optional settings including 'dotNotation' boolean to control whether dot-notation is interpreted for the 'propertyName' (default true).
  • valueIsJSON — When 'keyType' is 'hash', indicates if the value is JSON or key-value pairs (default true).

Output shape

single JSON object per input item containing the data retrieved from Redis mapped into the specified property; the property supports dot-notation for nested assignment.

If 'dotNotation' option is false, the property name is used literally without interpreting dot-notation. The operation fetches data based on the key type, optionally performing a type request first for 'automatic'. Errors can be handled via 'continueOnFail' settings. The retrieved value is set on the output JSON under the given 'propertyName' key.

Examples

Example 1: Get a Redis hash key storing JSON, returning it under 'user.info' property

Set 'key' to the Redis hash key, 'keyType' to 'hash', 'valueIsJSON' true, and 'propertyName' to 'user.info'.

Discussion