MCPcopy Create free account
hub / github.com/21st-dev/21st-sdk / getCacheHitRate

Function getCacheHitRate

apps/proxy/src/server.js:108–111  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

106}
107
108function getCacheHitRate() {
109 const total = metrics.cacheHits + metrics.cacheMisses
110 return total === 0 ? 0 : ((metrics.cacheHits / total) * 100).toFixed(2)
111}
112
113// ============================================================================
114// Express Middleware

Callers 1

server.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected