Redis
Key-value operations with Redis
Connect to any Redis instance to perform key-value, hash, list, and utility operations via a direct connection.
| Parameter | Type | Required | Description |
|---|
url | string | Yes | No description |
key | string | Yes | No description |
| Parameter | Type | Description |
|---|
key | string | The key that was retrieved |
value | string | The value of the key, or null if the key does not exist |
| Parameter | Type | Required | Description |
|---|
url | string | Yes | No description |
key | string | Yes | No description |
value | string | Yes | No description |
ex | number | No | No description |
| Parameter | Type | Description |
|---|
key | string | The key that was set |
result | string | The result of the SET operation (typically "OK") |
| Parameter | Type | Required | Description |
|---|
url | string | Yes | No description |
key | string | Yes | No description |
| Parameter | Type | Description |
|---|
key | string | The key that was deleted |
deletedCount | number | Number of keys deleted (0 if key did not exist, 1 if deleted) |
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.
| Parameter | Type | Required | Description |
|---|
url | string | Yes | No description |
pattern | string | No | No description |
| Parameter | Type | Description |
|---|
pattern | string | The pattern used to match keys |
keys | array | List of keys matching the pattern |
count | number | Number of keys found |
Execute a raw Redis command as a JSON array (e.g. [
| Parameter | Type | Required | Description |
|---|
url | string | Yes | No description |
command | string | Yes | Redis command as a JSON array (e.g. ["SET", "key", "value"]) |
| Parameter | Type | Description |
|---|
command | string | The command that was executed |
result | json | The result of the command |
| Parameter | Type | Required | Description |
|---|
url | string | Yes | No description |
key | string | Yes | No description |
field | string | Yes | No description |
value | string | Yes | No description |
| Parameter | Type | Description |
|---|
key | string | key output from the tool |
field | string | The field that was set |
result | number | Number of fields added (1 if new, 0 if updated) |
| Parameter | Type | Required | Description |
|---|
url | string | Yes | No description |
key | string | Yes | No description |
field | string | Yes | No description |
| Parameter | Type | Description |
|---|
key | string | key output from the tool |
field | string | The field that was retrieved |
value | string | The field value, or null if the field or key does not exist |
| Parameter | Type | Required | Description |
|---|
url | string | Yes | No description |
key | string | Yes | No description |
| Parameter | Type | Description |
|---|
key | string | key output from the tool |
fields | object | All field-value pairs in the hash as a key-value object. Empty object if the key does not exist. |
fieldCount | number | Number of fields in the hash |
| Parameter | Type | Required | Description |
|---|
url | string | Yes | No description |
key | string | Yes | No description |
field | string | Yes | No description |
| Parameter | Type | Description |
|---|
key | string | key output from the tool |
field | string | The field that was deleted |
deleted | number | Number of fields removed (1 if deleted, 0 if field did not exist) |
| Parameter | Type | Required | Description |
|---|
url | string | Yes | No description |
key | string | Yes | No description |
| Parameter | Type | Description |
|---|
key | string | The key that was incremented |
value | number | The new value after increment |
| Parameter | Type | Required | Description |
|---|
url | string | Yes | No description |
key | string | Yes | No description |
increment | number | Yes | No description |
| Parameter | Type | Description |
|---|
key | string | The key that was incremented |
value | number | The new value after increment |
| Parameter | Type | Required | Description |
|---|
url | string | Yes | No description |
key | string | Yes | No description |
seconds | number | Yes | No description |
| Parameter | Type | Description |
|---|
key | string | The key that expiration was set on |
result | number | 1 if the timeout was set, 0 if the key does not exist |
| Parameter | Type | Required | Description |
|---|
url | string | Yes | No description |
key | string | Yes | No description |
| Parameter | Type | Description |
|---|
key | string | The key that was checked |
ttl | number | Remaining TTL in seconds. Positive integer if TTL set, -1 if no expiration, -2 if key does not exist. |
| Parameter | Type | Required | Description |
|---|
url | string | Yes | No description |
key | string | Yes | No description |
| Parameter | Type | Description |
|---|
key | string | The key that was persisted |
result | number | 1 if the expiration was removed, 0 if the key does not exist or has no expiration |
| Parameter | Type | Required | Description |
|---|
url | string | Yes | No description |
key | string | Yes | No description |
value | string | Yes | No description |
| Parameter | Type | Description |
|---|
key | string | key output from the tool |
length | number | Length of the list after the push |
| Parameter | Type | Required | Description |
|---|
url | string | Yes | No description |
key | string | Yes | No description |
value | string | Yes | No description |
| Parameter | Type | Description |
|---|
key | string | key output from the tool |
length | number | Length of the list after the push |
| Parameter | Type | Required | Description |
|---|
url | string | Yes | No description |
key | string | Yes | No description |
| Parameter | Type | Description |
|---|
key | string | key output from the tool |
value | string | The removed element, or null if the list is empty |
| Parameter | Type | Required | Description |
|---|
url | string | Yes | No description |
key | string | Yes | No description |
| Parameter | Type | Description |
|---|
key | string | key output from the tool |
value | string | The removed element, or null if the list is empty |
| Parameter | Type | Required | Description |
|---|
url | string | Yes | No description |
key | string | Yes | No description |
| Parameter | Type | Description |
|---|
key | string | key output from the tool |
length | number | The length of the list, or 0 if the key does not exist |
| Parameter | Type | Required | Description |
|---|
url | string | Yes | No description |
key | string | Yes | No description |
start | number | Yes | No description |
stop | number | Yes | No description |
| Parameter | Type | Description |
|---|
key | string | key output from the tool |
values | array | List elements in the specified range |
count | number | Number of elements returned |
| Parameter | Type | Required | Description |
|---|
url | string | Yes | No description |
key | string | Yes | No description |
| Parameter | Type | Description |
|---|
key | string | The key that was checked |
exists | boolean | Whether the key exists (true) or not (false) |
| Parameter | Type | Required | Description |
|---|
url | string | Yes | No description |
key | string | Yes | No description |
value | string | Yes | No description |
| Parameter | Type | Description |
|---|
key | string | The key that was set |
wasSet | boolean | Whether the key was set (true) or already existed (false) |