Connect to Redis via Upstash to get/set keys, work with hashes and lists, and manage key expiry.
| Action | Description | Parameters | Returns |
|---|---|---|---|
append | Append a value to a Redis string key | key, value | RedisResult |
dbsize | Get the number of keys in the Redis database | — | RedisResult |
delete ⚠ | Delete a Redis key | key | RedisResult |
exists | Check if one or more keys exist | keys | RedisResult |
expire | Set a TTL (expiry) on a key | key, seconds | RedisResult |
get | Get the value of a Redis key | key | RedisResult |
hget | Get a field from a Redis hash | key, field | RedisResult |
hset | Set a field in a Redis hash | key, field, value | RedisResult |
incr | Increment a key's integer value | key | RedisResult |
keys | Find Redis keys matching a pattern | [pattern] | RedisResult |
lpush | Push values onto the head of a Redis list | key, values | RedisResult |
lrange | Get a range of elements from a Redis list | key, start, stop | RedisResult |
mget | Get the values of multiple Redis keys | keys | list |
mset | Set multiple Redis keys at once | key_values | RedisResult |
set | Set the value of a Redis key | key, value [ex] | RedisResult |
setnx | Set a key only if it does not exist | key, value | RedisResult |
ttl | Get the remaining TTL of a key | key | RedisResult |
type | Get the type of a key | key | RedisResult |
Full schema explorer, code generation, and live API testing