feat: новая функция
This commit is contained in:
@@ -87,6 +87,7 @@ class AICache {
|
||||
|
||||
calculateHitRate() {
|
||||
// Простая реализация - в реальности нужно отслеживать hits/misses
|
||||
if (this.maxSize === 0) return 0;
|
||||
return this.cache.size / this.maxSize;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user