Ask a question to get started
Enter to send•Shift+Enter new line
Set a value in the cache.
set( self, key: str, value: Any, refresh_func: Callable[[], Any] ) -> None
key
str
The cache key (prompt identifier).
value
Any
The value to cache.
refresh_func
Callable[[], Any]
Function to refresh this cache entry when stale.