Skip to content
This repository has been archived by the owner on Oct 14, 2023. It is now read-only.

修改注释 #17

Merged
merged 1 commit into from
Feb 17, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions src/cache/lru.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ namespace smallkv {
* 这里LockType是锁的类型,默认情况为NullLock即为无锁,
* 可以传入三种锁:NullLock、MutexLock、SpinLock
*
* 为什么不在运行时判断?例如if (LockType == "mutex_lock") lock.
* 答:运行时if存在开销。
* */
template<typename K, typename V, typename LockType = NullLock>
class LRU final : public CachePolicy<K, V> {
Expand Down