cache_lock_release
Release a distributed lock atomically by matching the fencing token. Prevents stale releases and maintains data consistency across cache instances.
Instructions
Release a previously acquired distributed lock. Uses a Lua script for atomic release – only deletes the key if the fencing token matches.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"instance_id": "<instance_id>",
"key": "<key>",
"token": "<token>"
},
"name": "cache_lock_release"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | Lock resource identifier (same as in cache_lock_acquire) | |
| token | Yes | Fencing token returned by cache_lock_acquire | |
| instance_id | Yes | UUID of the cache instance |