Skip to main content

Redis

Type: redis • Category: flow • Tags: redis, data, cache

Description

Perform Redis operations

Parameters

NameTypeDescriptionRequiredDefault
uristringRedis URI (default internal Redis)no
prefixstringUser-defined prefix for namespacingno""
operationstringRedis operation to performno"set"
keystringKey for operationsno
valuestringValue for set/incrno
ttlnumberTTL in seconds for set/expireno
patternstringPattern for list operationno"*"

Help

Redis Worker - Performing Redis Operations

Worker enables performing basic Redis database operations with automatic namespacing for security.

By default uses internal Redis.

Operations:

  • set: Sets a value under a key (optionally with TTL)
  • get: Retrieves a value from a key
  • delete: Deletes a key
  • list: Lists keys matching a pattern
  • exists: Checks if a key exists
  • incr: Increments a numeric value (by default by 1)
  • expire: Sets TTL for a key

Examples:

  • Set value: operation="set", key="mydata", value="hello"
  • Get value: operation="get", key="mydata"
  • List keys: operation="list", pattern="*"
  • With prefix: prefix="workflow", key="step1"

Notes:

  • Values are automatically serialized to JSON if they are objects/arrays
  • When retrieving, JSON is automatically parsed
  • All operations are performed in an isolated user space