Skip to content

Commit 17d2cbb

Browse files
committed
internal
1 parent 17f2d93 commit 17d2cbb

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/Compiler/Utilities/Caches.fs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ open System.Diagnostics
1313
// or the number of elements in the dictionary is greater than the available space from index to the end of the destination array.)
1414
// this is casuedby insertions happened between reading the `Count` and doing the `CopyTo`.
1515
// This solution introduces a custom `ConcurrentDictionary.sortBy` which will be calling a proper `CopyTo`, the one on the ConcurrentDictionary itself.
16-
module ConcurrentDictionary =
16+
module internal ConcurrentDictionary =
1717

1818
open System.Collections
1919
open System.Collections.Generic
@@ -35,17 +35,17 @@ module ConcurrentDictionary =
3535
array :> seq<_>)
3636

3737
[<Struct; RequireQualifiedAccess; NoComparison; NoEquality>]
38-
type CachingStrategy =
38+
type internal CachingStrategy =
3939
| LRU
4040
| LFU
4141

4242
[<Struct; RequireQualifiedAccess; NoComparison>]
43-
type EvictionMethod =
43+
type internal EvictionMethod =
4444
| Blocking
4545
| Background
4646

4747
[<Struct; RequireQualifiedAccess; NoComparison; NoEquality>]
48-
type CacheOptions =
48+
type internal CacheOptions =
4949
{
5050
MaximumCapacity: int
5151
PercentageToEvict: int
@@ -64,7 +64,7 @@ type CacheOptions =
6464
}
6565

6666
[<Sealed; NoComparison; NoEquality>]
67-
type CachedEntity<'Value> =
67+
type internal CachedEntity<'Value> =
6868
val Value: 'Value
6969
val mutable LastAccessed: int64
7070
val mutable AccessCount: int64
@@ -78,7 +78,7 @@ type CachedEntity<'Value> =
7878

7979
[<Sealed; NoComparison; NoEquality>]
8080
[<DebuggerDisplay("{GetStats()}")>]
81-
type Cache<'Key, 'Value> private (options: CacheOptions, capacity, cts) =
81+
type internal Cache<'Key, 'Value> private (options: CacheOptions, capacity, cts) =
8282

8383
let cacheHit = Event<_ * _>()
8484
let cacheMiss = Event<_>()

0 commit comments

Comments
 (0)