Skip to content

Commit 5ee68bd

Browse files
authored
Update README.md
1 parent 8e82adf commit 5ee68bd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Please refer to the [wiki](https://github.com/bitfaster/BitFaster.Caching/wiki)
1313

1414
## ConcurrentLru
1515

16-
`ConcurrentLru` is intended as a light weight drop in replacement for `ConcurrentDictionary`, and a faster alternative to the `System.Runtime.Caching.MemoryCache` family of classes (e.g. `HttpRuntime.Cache`, `System.Web.Caching` etc).
16+
`ConcurrentLru` is a light weight drop in replacement for `ConcurrentDictionary`, but with bounded size enforced by a pseudo LRU eviction policy. There are no background threads, no lock contention, lookups are fast and hit rate outperforms a pure LRU in all tested scenarios.
1717

1818
Choose a capacity and use just like ConcurrentDictionary, but with bounded size:
1919

@@ -42,7 +42,7 @@ var value = lru.GetOrAdd(1, (k) => new SomeItem(k));
4242

4343
## Time based eviction
4444

45-
`ConcurrentTLru` functions the same as `ConcurrentLru`, but entries also expire after a fixed duration since an entry's creation or most recent replacement. This can be used to remove stale items. If the values generated for each key can change over time, `ConcurrentTLru` is eventually consistent where the inconsistency window = time to live (TTL).
45+
`ConcurrentTLru` functions the same as `ConcurrentLru`, but entries also expire after a fixed duration since creation or most recent replacement. This can be used to remove stale items. If the values generated for each key can change over time, `ConcurrentTLru` is eventually consistent where the inconsistency window = time to live (TTL).
4646

4747
```csharp
4848
var lru = new ConcurrentLruBuilder<int, SomeItem>()

0 commit comments

Comments
 (0)