AACFlow

Redis

Key-value operations with Redis

Usage Instructions

Connect to any Redis instance to perform key-value, hash, list, and utility operations via a direct connection.

Tools

redis_get

Input

ParameterTypeRequiredDescription
urlstringYesNo description
keystringYesNo description

Output

ParameterTypeDescription
keystringThe key that was retrieved
valuestringThe value of the key, or null if the key does not exist

redis_set

Input

ParameterTypeRequiredDescription
urlstringYesNo description
keystringYesNo description
valuestringYesNo description
exnumberNoNo description

Output

ParameterTypeDescription
keystringThe key that was set
resultstringThe result of the SET operation (typically "OK")

redis_delete

Input

ParameterTypeRequiredDescription
urlstringYesNo description
keystringYesNo description

Output

ParameterTypeDescription
keystringThe key that was deleted
deletedCountnumberNumber of keys deleted (0 if key did not exist, 1 if deleted)

redis_keys

List all keys matching a pattern in Redis. Avoid using on large databases in production; use the Redis Command tool with SCAN for large key spaces.

Input

ParameterTypeRequiredDescription
urlstringYesNo description
patternstringNoNo description

Output

ParameterTypeDescription
patternstringThe pattern used to match keys
keysarrayList of keys matching the pattern
countnumberNumber of keys found

redis_command

Execute a raw Redis command as a JSON array (e.g. [

Input

ParameterTypeRequiredDescription
urlstringYesNo description
commandstringYesRedis command as a JSON array (e.g. ["SET", "key", "value"])

Output

ParameterTypeDescription
commandstringThe command that was executed
resultjsonThe result of the command

redis_hset

Input

ParameterTypeRequiredDescription
urlstringYesNo description
keystringYesNo description
fieldstringYesNo description
valuestringYesNo description

Output

ParameterTypeDescription
keystringkey output from the tool
fieldstringThe field that was set
resultnumberNumber of fields added (1 if new, 0 if updated)

redis_hget

Input

ParameterTypeRequiredDescription
urlstringYesNo description
keystringYesNo description
fieldstringYesNo description

Output

ParameterTypeDescription
keystringkey output from the tool
fieldstringThe field that was retrieved
valuestringThe field value, or null if the field or key does not exist

redis_hgetall

Input

ParameterTypeRequiredDescription
urlstringYesNo description
keystringYesNo description

Output

ParameterTypeDescription
keystringkey output from the tool
fieldsobjectAll field-value pairs in the hash as a key-value object. Empty object if the key does not exist.
fieldCountnumberNumber of fields in the hash

redis_hdel

Input

ParameterTypeRequiredDescription
urlstringYesNo description
keystringYesNo description
fieldstringYesNo description

Output

ParameterTypeDescription
keystringkey output from the tool
fieldstringThe field that was deleted
deletednumberNumber of fields removed (1 if deleted, 0 if field did not exist)

redis_incr

Input

ParameterTypeRequiredDescription
urlstringYesNo description
keystringYesNo description

Output

ParameterTypeDescription
keystringThe key that was incremented
valuenumberThe new value after increment

redis_incrby

Input

ParameterTypeRequiredDescription
urlstringYesNo description
keystringYesNo description
incrementnumberYesNo description

Output

ParameterTypeDescription
keystringThe key that was incremented
valuenumberThe new value after increment

redis_expire

Input

ParameterTypeRequiredDescription
urlstringYesNo description
keystringYesNo description
secondsnumberYesNo description

Output

ParameterTypeDescription
keystringThe key that expiration was set on
resultnumber1 if the timeout was set, 0 if the key does not exist

redis_ttl

Input

ParameterTypeRequiredDescription
urlstringYesNo description
keystringYesNo description

Output

ParameterTypeDescription
keystringThe key that was checked
ttlnumberRemaining TTL in seconds. Positive integer if TTL set, -1 if no expiration, -2 if key does not exist.

redis_persist

Input

ParameterTypeRequiredDescription
urlstringYesNo description
keystringYesNo description

Output

ParameterTypeDescription
keystringThe key that was persisted
resultnumber1 if the expiration was removed, 0 if the key does not exist or has no expiration

redis_lpush

Input

ParameterTypeRequiredDescription
urlstringYesNo description
keystringYesNo description
valuestringYesNo description

Output

ParameterTypeDescription
keystringkey output from the tool
lengthnumberLength of the list after the push

redis_rpush

Input

ParameterTypeRequiredDescription
urlstringYesNo description
keystringYesNo description
valuestringYesNo description

Output

ParameterTypeDescription
keystringkey output from the tool
lengthnumberLength of the list after the push

redis_lpop

Input

ParameterTypeRequiredDescription
urlstringYesNo description
keystringYesNo description

Output

ParameterTypeDescription
keystringkey output from the tool
valuestringThe removed element, or null if the list is empty

redis_rpop

Input

ParameterTypeRequiredDescription
urlstringYesNo description
keystringYesNo description

Output

ParameterTypeDescription
keystringkey output from the tool
valuestringThe removed element, or null if the list is empty

redis_llen

Input

ParameterTypeRequiredDescription
urlstringYesNo description
keystringYesNo description

Output

ParameterTypeDescription
keystringkey output from the tool
lengthnumberThe length of the list, or 0 if the key does not exist

redis_lrange

Input

ParameterTypeRequiredDescription
urlstringYesNo description
keystringYesNo description
startnumberYesNo description
stopnumberYesNo description

Output

ParameterTypeDescription
keystringkey output from the tool
valuesarrayList elements in the specified range
countnumberNumber of elements returned

redis_exists

Input

ParameterTypeRequiredDescription
urlstringYesNo description
keystringYesNo description

Output

ParameterTypeDescription
keystringThe key that was checked
existsbooleanWhether the key exists (true) or not (false)

redis_setnx

Input

ParameterTypeRequiredDescription
urlstringYesNo description
keystringYesNo description
valuestringYesNo description

Output

ParameterTypeDescription
keystringThe key that was set
wasSetbooleanWhether the key was set (true) or already existed (false)

On this page

Start building today
Trusted by over 100,000 builders.
The SaaS platform to build AI agents and run your agentic workforce.
Get started