WayrApp Backend & Ecosystem Documentation - v1.0.0
    Preparing search index...
    • Evaluates cache system performance and health status.

      Analyzes cache hit rates, size metrics, and overall performance to determine cache health status. Uses configurable thresholds to classify cache performance as healthy or degraded based on hit rate and size metrics.

      Returns Promise<{ status: string; stats: CacheStats; timestamp: string }>

      Cache health status with performance statistics

      const cacheHealth = await healthChecks.cache();
      console.log(`Cache status: ${cacheHealth.status}`);
      console.log(`Hit rate: ${cacheHealth.stats.hitRate}%`);
      console.log(`Cache size: ${cacheHealth.stats.size} entries`);