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

Commit

Permalink
修改注释
Browse files Browse the repository at this point in the history
  • Loading branch information
yangyang233333 committed Feb 17, 2023
1 parent 548d7f0 commit ba8aef8
Showing 1 changed file with 0 additions and 2 deletions.
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

0 comments on commit ba8aef8

Please sign in to comment.