Skip to content

Commit eb2eee5

Browse files
authored
Update README.md
1 parent 83f8cfb commit eb2eee5

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

README.md

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,21 @@
11
# BitFaster.Caching.DependencyInjection
22
Extension methods for setting up caches using Microsoft.Extensions.DependencyInjection.
33

4-
Currently work in progress.
4+
# ConcurrentLru
5+
6+
```cs
7+
services.AddLru<int, int>(builder =>
8+
builder
9+
.WithCapacity(666)
10+
.Build());
11+
```
12+
13+
14+
# ConcurrentLfu
15+
16+
```cs
17+
services.AddLfu<int, int>(builder =>
18+
builder
19+
.WithCapacity(666)
20+
.Build());
21+
```

0 commit comments

Comments
 (0)