cacheport
v0.1.0Key-value cache over Redis: set, get, delete and list keys.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
set
Set a Redis key-value pair with optional expiration
| Parameter | Type | Description |
|---|---|---|
key * | string | The Redis key to set |
value * | string | The string value to store under the key |
expireSeconds | number | Optional expiration time in seconds after which the key expires; must be a positive number |
get
Get a value by key from Redis
| Parameter | Type | Description |
|---|---|---|
key * | string | The Redis key whose value to retrieve |
delete
Delete one or more keys from Redis
| Parameter | Type | Description |
|---|---|---|
key * | The Redis key to delete, or an array of Redis keys to delete |
list
List Redis keys matching a pattern
| Parameter | Type | Description |
|---|---|---|
pattern | string | Optional glob pattern to match key names against; defaults to '*' to list all keys |