-
-
Notifications
You must be signed in to change notification settings - Fork 733
Labels
area: coreCore framework (.aios-core/core/)Core framework (.aios-core/core/)status: needs-triageAwaiting initial triageAwaiting initial triage
Description
Bug
ConfigCache.has() delega internamente para get(), que incrementa hits ou misses como efeito colateral.
Problema
Uma simples verificação de existência (has()) infla as estatísticas do cache. Qualquer código que faça if (cache.has(key)) { cache.get(key) } conta 2 hits em vez de 1.
Localização
config-cache.js — método has() chama this.get(key):
has(key) {
return this.get(key) !== undefined; // incrementa hits/misses!
}Correção
Reimplementar has() para verificar diretamente no Map sem tocar nas métricas.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
area: coreCore framework (.aios-core/core/)Core framework (.aios-core/core/)status: needs-triageAwaiting initial triageAwaiting initial triage