Skip to main content
Manage 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

OperationSDK MethodAPI Endpoint
Statisticssandbox.cache.stats()GET /cache/stats
Clearingsandbox.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:
  1. Cache Statistics - View cache performance
  2. Clearing Cache - Clear cache when needed

Next Steps