Skip to content

Commit f165667

Browse files
author
Alex Peck
committed
default concurrency
1 parent f0cc310 commit f165667

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

BitFaster.Caching/Lru/Defaults.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
using System;
2-
using System.Collections.Generic;
3-
using System.Text;
42

53
namespace BitFaster.Caching.Lru
64
{
75
internal static class Defaults
86
{
7+
#if NET9_0_OR_GREATER
8+
public static int ConcurrencyLevel => -1;
9+
#else
910
public static int ConcurrencyLevel => Environment.ProcessorCount;
11+
#endif
1012
}
1113
}

0 commit comments

Comments
 (0)