未验证 提交 5fde0069 编写于 作者: O openharmony_ci 提交者: Gitee

!837 【挑单】配置缓存数

Merge pull request !837 from Zhouyj/cherry-pick-1669723910
......@@ -91,7 +91,7 @@ CacheManager& CacheManager::GetInstance()
RetCode CacheManager::Init(uint16_t size)
{
if ((size == 0) || (size > MAX_CACHE_ENTRY_NUM)) {
if ((size == 0) || (size > DEFAULT_MAX_CACHE_ENTRY_NUM)) {
return RetCode::FAIL;
}
Reset();
......
......@@ -103,7 +103,6 @@ private:
static constexpr uint8_t AGING_INTERVAL = 1;
static constexpr uint8_t LIFE_GAIN_INTERVAL = 1;
static constexpr uint16_t LIFE_LIMIT = 1000;
static constexpr uint8_t MAX_CACHE_ENTRY_NUM = 64;
};
} // namespace OHOS
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册