Skip to content

Commit 4b1fc92

Browse files
authored
Update pkg readme (#574)
1 parent ae24a38 commit 4b1fc92

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

BitFaster.Caching/ReadMe.md

+5
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,11 @@ var lfu = new ConcurrentLfu<string, SomeItem>(capacity);
3333
var value = lfu.GetOrAdd("key", (key) => new SomeItem(key));
3434
```
3535

36+
Optionally configure `ConcurrentLfu` with a [time-based eviction policy](https://github.com/bitfaster/BitFaster.Caching/wiki/ConcurrentLru:-Time%E2%80%90based-eviction), either:
37+
- Expire after write
38+
- Expire after access
39+
- Calculate an expiry time per item
40+
3641
## Documentation
3742

3843
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)