This commit is contained in:
groot 2019-11-26 19:23:38 +08:00
parent 8b652a00e2
commit 1d5f57c5dd

View File

@ -99,8 +99,8 @@ Cache<ItemObj>::insert(const std::string& key, const ItemObj& item) {
std::lock_guard<std::mutex> lock(mutex_);
lru_.put(key, item);
SERVER_LOG_DEBUG << "Insert " << key << " size:" << item->Size() << " bytes into cache, usage: " << usage_
<< " bytes";
SERVER_LOG_DEBUG << "Insert " << key << " size: " << item->Size() << " bytes into cache, usage: " << usage_
<< " bytes," << " capacity: " << capacity_ << " bytes";
}
}
@ -116,7 +116,7 @@ Cache<ItemObj>::erase(const std::string& key) {
usage_ -= old_item->Size();
SERVER_LOG_DEBUG << "Erase " << key << " size: " << old_item->Size() << " bytes from cache, usage: " << usage_
<< " bytes";
<< " bytes," << " capacity: " << capacity_ << " bytes";
lru_.erase(key);
}