string_decr
Decrease the value of a Redis string by a specified integer, defaulting to 1 if no value is provided. Ideal for decrementing counters or managing numeric data.
Instructions
递减数值
Input Schema
Name | Required | Description | Default |
---|---|---|---|
decrement | No | 减量值(可选,默认为 1) | |
key | Yes | 键名 |
Input Schema (JSON Schema)
{
"properties": {
"decrement": {
"description": "减量值(可选,默认为 1)",
"type": "number"
},
"key": {
"description": "键名",
"type": "string"
}
},
"required": [
"key"
],
"type": "object"
}