Ask a question to get started
Enter to send•Shift+Enter new line
Set a value in the cache.
cache_set( key: str, value: Any, *, ttl: timedelta | None = None
key
str
value
Any
ttl
timedelta | None
None
Requires Agent Server runtime version 0.7.29 or later.
The cache key.
The value to cache (must be JSON-serializable).
Optional time-to-live. Capped at 1 day; None or zero defaults to 1 day.