cache_put
Store JSON-serializable data in cache with a specified TTL using a unique key. Ideal for caching API responses or computed values to optimize performance.
Instructions
Store a value in the cache with TTL. Useful for caching API responses, computed values, etc.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
key | Yes | Cache key | |
namespace | No | Optional namespace to prevent key collisions | default |
ttl_seconds | No | Time to live in seconds | |
value | Yes | Value to cache (any JSON-serializable data) |