store_data
Cache data with a unique key and optional time-to-live (TTL) using the Memory Cache Server, optimizing token usage during language model interactions.
Instructions
Store data in the cache with optional TTL
Input Schema
Name | Required | Description | Default |
---|---|---|---|
key | Yes | Unique identifier for the cached data | |
ttl | No | Time-to-live in seconds (optional) | |
value | Yes | Data to cache |
Input Schema (JSON Schema)
{
"properties": {
"key": {
"description": "Unique identifier for the cached data",
"type": "string"
},
"ttl": {
"description": "Time-to-live in seconds (optional)",
"type": "number"
},
"value": {
"description": "Data to cache",
"type": "any"
}
},
"required": [
"key",
"value"
],
"type": "object"
}