json_set
Set or update JSON values in Redis at specific paths with optional expiration. Use this tool to manage JSON data efficiently and control key lifetimes.
Instructions
Set a JSON value in Redis at a given path with an optional expiration time.
Args: name: The Redis key where the JSON document is stored. path: The JSON path where the value should be set. value: The JSON value to store. expire_seconds: Optional; time in seconds after which the key should expire.
Returns: A success message or an error message.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
expire_seconds | No | ||
name | Yes | ||
path | Yes | ||
value | Yes |
Input Schema (JSON Schema)
{ "properties": { "expire_seconds": { "default": null, "title": "Expire Seconds", "type": "integer" }, "name": { "title": "Name", "type": "string" }, "path": { "title": "Path", "type": "string" }, "value": { "title": "Value" } }, "required": [ "name", "path", "value" ], "title": "json_setArguments", "type": "object" }