Sanity check to prevent performance regression (#3171)

Co-authored-by: Lianmin Zheng <lianminzheng@gmail.com>
This commit is contained in:
Zhiqiang Xie
2025-01-27 12:28:17 -08:00
committed by GitHub
parent cf142b6eb8
commit 08104b56de
5 changed files with 60 additions and 4 deletions

View File

@@ -41,6 +41,10 @@ class BasePrefixCache(ABC):
def evictable_size(self):
pass
@abstractmethod
def protected_size(self):
raise NotImplementedError()
def total_size(self):
raise NotImplementedError()