Last Verified: 2025-01-27
Package:
@hopx-ai/sdk on npm
Overview
TheCache resource provides methods for managing the execution result cache in sandboxes.
Methods
stats
Get cache statistics.
Promise<CacheStatsResponse> - Cache statistics
Example:
clear
Clear the execution result cache.
Related Classes
- Sandbox - Main sandbox class
- Core Concepts: Cache - Learn about cache management
See Also
- Sandbox Class - Access cache via
sandbox.cache - Cache Statistics - Detailed cache documentation
Related
- Python SDK: Cache - Python SDK cache management
- Cache Statistics - Learn about cache statistics
- Clearing Cache - Clear cache to free memory
Next Steps
- Learn about Cache Statistics to monitor cache
- Review Clearing Cache to free memory
- Explore Code Execution for cached results
- CLI System Commands - View cache from CLI

