Module CacheStatsCommand

Module CacheStatsCommand 

Source
Expand description

§CacheStatsCommand

Retrieves cache statistics for monitoring.

§RESPONSIBILITIES

§Cache Monitoring

  • Get cache metrics
  • Report cache hit/miss rates
  • Return memory usage statistics

§ARCHITECTURAL ROLE

§Position in Mountain

  • IPC wrapper command in Binary subsystem
  • Cache monitoring endpoint

§Dependencies

  • crate::IPC::AdvancedFeatures: Cache tracking
  • tauri: IPC framework
  • serde_json: JSON serialization

§Dependents

  • Wind frontend: Queries cache stats
  • DevTools: Performance monitoring

§SECURITY

§Considerations

  • Stats are read-only, no security impact

§PERFORMANCE

§Considerations

  • Stats collection should be lightweight
  • Update interval affects accuracy

Functions§

MountainGetCacheStats
Get cache stats.