cache-set-config
Adjust cache timeout settings in XC-MCP to optimize performance, control data freshness, and manage memory usage. Tailor cache duration for simulators, projects, or all caches to suit development or CI workflows.
Instructions
🎛️ Cache Optimization - Fine-tune XC-MCP's intelligent caching for your workflow.
Why manage caching:
• ⚡ Performance tuning - Longer caches = faster repeated operations
• 🔄 Fresh data control - Shorter caches = more up-to-date information
• 💾 Memory management - Balance speed vs memory usage
• 🎯 Workflow optimization - Different cache settings for development vs CI
Configure cache maximum age settings. Default is 1 hour for simulator and project caches.
Examples:
- Set 30 minutes: {"cacheType": "all", "maxAgeMinutes": 30}
- Set 2 hours for simulators: {"cacheType": "simulator", "maxAgeHours": 2}
- Set 5 minutes: {"cacheType": "project", "maxAgeMinutes": 5}
Common Workflow:
- cache-get-stats → check current cache status
- cache-set-config → adjust cache timeouts
- cache-clear → force refresh when needed
- Your normal xcodebuild/simctl operations (now faster!)
Input Schema
Name | Required | Description | Default |
---|---|---|---|
cacheType | Yes | Which cache to configure | |
maxAgeHours | No | Maximum cache age in hours (alternative to maxAgeMs) | |
maxAgeMinutes | No | Maximum cache age in minutes (alternative to maxAgeMs) | |
maxAgeMs | No | Maximum cache age in milliseconds |