Skip to content

Commit e4a9d16

Browse files
authored
reword (#256)
1 parent 589feaa commit e4a9d16

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

BitFaster.Caching/ReadMe.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ High performance, thread-safe in-memory caching primitives for .NET.
44

55
## ConcurrentLru
66

7-
`ConcurrentLru` is a light weight drop in replacement for `ConcurrentDictionary`, but with bounded size enforced by the TU-Q eviction policy (similar to [2Q](https://www.vldb.org/conf/1994/P439.PDF)). There are no background threads, no lock contention, lookups are fast and hit rate outperforms a pure LRU in all tested scenarios.
7+
`ConcurrentLru` is a light weight drop in replacement for `ConcurrentDictionary`, but with bounded size enforced by the TU-Q eviction policy (similar to [2Q](https://www.vldb.org/conf/1994/P439.PDF)). There are no background threads, no global locks, concurrent throughput is high, lookups are fast and hit rate outperforms a pure LRU in all tested scenarios.
88

9-
Choose a capacity and use just like ConcurrentDictionary, but with bounded size:
9+
Choose a capacity and use just like `ConcurrentDictionary`, but with bounded size:
1010

1111
```csharp
1212
int capacity = 666;
@@ -17,9 +17,9 @@ var value = lru.GetOrAdd("key", (key) => new SomeItem(key));
1717

1818
## ConcurrentLfu
1919

20-
`ConcurrentLfu` is a drop in replacement for `ConcurrentDictionary`, but with bounded size enforced by the [W-TinyLFU eviction policy](https://arxiv.org/pdf/1512.00727.pdf). `ConcurrentLfu` has near optimal hit rate. Reads and writes are buffered and replayed asynchronously to mitigate lock contention.
20+
`ConcurrentLfu` is a drop in replacement for `ConcurrentDictionary`, but with bounded size enforced by the [W-TinyLFU eviction policy](https://arxiv.org/pdf/1512.00727.pdf). `ConcurrentLfu` has near optimal hit rate. Reads and writes are buffered then replayed asynchronously to mitigate lock contention.
2121

22-
Choose a capacity and use just like ConcurrentDictionary, but with bounded size:
22+
Choose a capacity and use just like `ConcurrentDictionary`, but with bounded size:
2323

2424
```csharp
2525
int capacity = 666;
@@ -30,4 +30,4 @@ var value = lfu.GetOrAdd("key", (key) => new SomeItem(key));
3030

3131
## Documentation
3232

33-
Please refer to the [wiki](https://github.com/bitfaster/BitFaster.Caching/wiki) for full API documentation, and a complete analysis of hit rate vs cache size, latency and throughput.
33+
Please refer to the [wiki](https://github.com/bitfaster/BitFaster.Caching/wiki) for full API documentation, and a complete analysis of hit rate, latency and throughput.

0 commit comments

Comments
 (0)