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 f790a7d commit 01d27dbCopy full SHA for 01d27db
BitFaster.Caching.UnitTests/Lfu/ConcurrentLfuBuilderTests.cs
@@ -12,7 +12,6 @@ public class ConcurrentLfuBuilderTests
12
[Fact]
13
public void TestConcurrencyLevel()
14
{
15
- // Note that on .net8+, -1 indicates the default concurrency level
16
var b = new ConcurrentLfuBuilder<int, int>()
17
.WithConcurrencyLevel(0);
18
BitFaster.Caching/Lru/Defaults.cs
@@ -5,6 +5,7 @@ namespace BitFaster.Caching.Lru
5
internal static class Defaults
6
7
#if NET8_0_OR_GREATER
8
+ // Note that on .net8+, -1 indicates the default concurrency level
9
public static int ConcurrencyLevel => -1;
10
#else
11
public static int ConcurrencyLevel => Environment.ProcessorCount;
0 commit comments