Skip to content

Commit 589feaa

Browse files
authored
docs (#255)
1 parent fb5c7c5 commit 589feaa

File tree

5 files changed

+3
-12
lines changed

5 files changed

+3
-12
lines changed

BitFaster.Caching/Buffers/MpmcBoundedBuffer.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,7 @@ namespace BitFaster.Caching.Buffers
99
/// Provides a multi-producer, multi-consumer thread-safe ring buffer. When the buffer is full,
1010
/// TryAdd fails and returns false. When the buffer is empty, TryTake fails and returns false.
1111
/// </summary>
12-
/// <remarks>
13-
/// Based on the Segment internal class from ConcurrentQueue
14-
/// https://github.com/dotnet/runtime/blob/main/src/libraries/System.Private.CoreLib/src/System/Collections/Concurrent/ConcurrentQueueSegment.cs
15-
/// </remarks>
12+
/// Based on the Segment internal class from the .NET ConcurrentQueue class.
1613
public sealed class MpmcBoundedBuffer<T>
1714
{
1815
private Slot[] slots;

BitFaster.Caching/Buffers/MpscBoundedBuffer.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,7 @@ namespace BitFaster.Caching.Buffers
88
/// Provides a multi-producer, single-consumer thread-safe ring buffer. When the buffer is full,
99
/// TryAdd fails and returns false. When the buffer is empty, TryTake fails and returns false.
1010
/// </summary>
11-
/// <remarks>
12-
/// Based on BoundedBuffer by Ben Manes.
13-
/// https://github.com/ben-manes/caffeine/blob/master/caffeine/src/main/java/com/github/benmanes/caffeine/cache/BoundedBuffer.java
14-
/// </remarks>
11+
/// Based on the BoundedBuffer class in the Caffeine library by [email protected] (Ben Manes).
1512
[DebuggerDisplay("Count = {Count}/{Capacity}")]
1613
public sealed class MpscBoundedBuffer<T> where T : class
1714
{

BitFaster.Caching/Counters/Counter.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ namespace BitFaster.Caching.Counters
99
/// <summary>
1010
/// A thread-safe counter suitable for high throuhgput counting across many concurrent threads.
1111
/// </summary>
12+
/// Based on the LongAdder class by Doug Lea.
1213
public sealed class Counter : Striped64
1314
{
1415
/// <summary>

BitFaster.Caching/Lfu/CmSketch.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,8 @@ namespace BitFaster.Caching.Lfu
88
/// accumulated count across all values over time, such that a historic popular value will decay to zero frequency
99
/// over time if it is not accessed.
1010
/// </summary>
11-
/// <remarks>
1211
/// This is a direct C# translation of FrequencySketch in the Caffeine library by [email protected] (Ben Manes).
1312
/// https://github.com/ben-manes/caffeine
14-
/// </remarks>
1513
public sealed class CmSketch<T>
1614
{
1715
// A mixture of seeds from FNV-1a, CityHash, and Murmur3

BitFaster.Caching/Lfu/ConcurrentLfu.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,8 @@ namespace BitFaster.Caching.Lfu
3737
/// hill climbing algorithm. A larger window favors workloads with high recency bias, whereas a larger main space
3838
/// favors workloads with frequency bias.
3939
/// </summary>
40-
/// <remarks>
4140
/// Based on the Caffeine library by [email protected] (Ben Manes).
4241
/// https://github.com/ben-manes/caffeine
43-
/// </remarks>
4442
[DebuggerTypeProxy(typeof(ConcurrentLfu<,>.LfuDebugView))]
4543
[DebuggerDisplay("Count = {Count}/{Capacity}")]
4644
public sealed class ConcurrentLfu<K, V> : ICache<K, V>, IAsyncCache<K, V>, IBoundedPolicy

0 commit comments

Comments
 (0)