We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 12779d0 commit 4b2f3a0Copy full SHA for 4b2f3a0
BitFaster.Caching/Lru/TemplateConcurrentLru.cs
@@ -84,7 +84,8 @@ public TemplateConcurrentLru(
84
this.hitCounter = hitCounter;
85
}
86
87
- public int Count => this.dictionary.Count;
+ // No lock count: https://arbel.net/2013/02/03/best-practices-for-using-concurrentdictionary/
88
+ public int Count => this.dictionary.Skip(0).Count();
89
90
public int HotCount => this.hotCount;
91
0 commit comments