Skip to main contentManage execution cache in HopX sandboxes for performance optimization. This hub covers cache statistics, clearing, and best practices.
What You’ll Learn
- How to view cache statistics
- How to clear execution cache
- How to optimize cache usage
- How to monitor cache performance
- Best practices for cache management
Cache Management Overview
| Operation | SDK Method | API Endpoint |
|---|
| Statistics | sandbox.cache.stats() | GET /cache/stats |
| Clearing | sandbox.cache.clear() | POST /cache/clear |
Core Concepts
Cache Statistics
View cache statistics including hit rate and cached items.
Clearing Cache
Clear execution cache to free memory or force re-execution.
SDK Reference
Python SDK
Complete reference for Python cache operations.
- Cache Module - Complete cache API
cache.stats() - Get cache statistics
cache.clear() - Clear cache
JavaScript SDK
Complete reference for JavaScript/TypeScript cache operations.
- Cache Module - Complete cache API
cache.stats() - Get cache statistics
cache.clear() - Clear cache
API Reference
VM Agent API
REST API endpoints for cache management.
Quick Start
If you’re new to cache management, start here:
- Cache Statistics - View cache performance
- Clearing Cache - Clear cache when needed
Next Steps