Skip to content

Commit 5c1e686

Browse files
author
Alex Peck
committed
readme
1 parent 964e635 commit 5c1e686

File tree

1 file changed

+11
-11
lines changed
  • src/BitFaster.Caching.DependencyInjection

1 file changed

+11
-11
lines changed
Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Extension methods for setting up caches using Microsoft.Extensions.DependencyInjection.
1+
Extension methods for setting up [caches](https://github.com/bitfaster/BitFaster.Caching/wiki/Caches) using [Microsoft.Extensions.DependencyInjection](https://www.nuget.org/packages/Microsoft.Extensions.DependencyInjection/).
22

33
# ConcurrentLru
44

@@ -11,16 +11,16 @@ services.AddLru<int, int>(builder =>
1111
.Build());
1212
```
1313

14-
The builder delegate can be used to configure the cache, see the [wiki](https://github.com/bitfaster/BitFaster.Caching/wiki/ConcurrentLru-Quickstart#builder-api) for details.
14+
The builder delegate is used to configure the registered cache, see the [wiki](https://github.com/bitfaster/BitFaster.Caching/wiki/ConcurrentLru-Quickstart#builder-api) for more details about the builder API.
1515

1616
There is an extension method for each [cache interface](https://github.com/bitfaster/BitFaster.Caching/wiki/Caches):
1717

1818
| Extension | Result |
1919
|-----------|--------|
20-
| AddLru | Registers `ConcurrentLru<int, int>` as a singleton `ICache<int, int>` |
21-
| AddAsyncLru | Registers `ConcurrentLru<int, int>` as a singleton `IAsyncCache<int, int>` |
22-
| AddScopedLru | Registers `ConcurrentLru<int, Disposable>` as a singleton `IScopedCache<int, Disposable>` |
23-
| AddScopedAsyncLru | Registers `ConcurrentLru<int, Disposable>` as a singleton `IScopedAsyncCache<int, Disposable>` |
20+
| `AddLru` | Registers `ConcurrentLru<int, int>` as a singleton `ICache<int, int>` |
21+
| `AddAsyncLru` | Registers `ConcurrentLru<int, int>` as a singleton `IAsyncCache<int, int>` |
22+
| `AddScopedLru` | Registers `ConcurrentLru<int, Disposable>` as a singleton `IScopedCache<int, Disposable>` |
23+
| `AddScopedAsyncLru` | Registers `ConcurrentLru<int, Disposable>` as a singleton `IScopedAsyncCache<int, Disposable>` |
2424

2525

2626
# ConcurrentLfu
@@ -34,13 +34,13 @@ services.AddLfu<int, int>(builder =>
3434
.Build());
3535
```
3636

37-
The builder delegate can be used to configure the cache, see the [wiki](https://github.com/bitfaster/BitFaster.Caching/wiki/ConcurrentLfu-Quickstart#builder-api) for details.
37+
The builder delegate is used to configure the registered cache, see the [wiki](https://github.com/bitfaster/BitFaster.Caching/wiki/ConcurrentLfu-Quickstart#builder-api) for more details about the builder API.
3838

3939
There is an extension method for each [cache interface](https://github.com/bitfaster/BitFaster.Caching/wiki/Caches):
4040

4141
| Extension | Result |
4242
|-----------|--------|
43-
| AddLfu | Registers `ConcurrentLfu<int, int>` as a singleton `ICache<int, int>` |
44-
| AddAsyncLfu | Registers `ConcurrentLfu<int, int>` as a singleton `IAsyncCache<int, int>` |
45-
| AddScopedLfu | Registers `ConcurrentLfu<int, Disposable>` as a singleton `IScopedCache<int, Disposable>` |
46-
| AddScopedAsyncLfu | Registers `ConcurrentLfu<int, Disposable>` as a singleton `IScopedAsyncCache<int, Disposable>` |
43+
| `AddLfu` | Registers `ConcurrentLfu<int, int>` as a singleton `ICache<int, int>` |
44+
| `AddAsyncLfu` | Registers `ConcurrentLfu<int, int>` as a singleton `IAsyncCache<int, int>` |
45+
| `AddScopedLfu` | Registers `ConcurrentLfu<int, Disposable>` as a singleton `IScopedCache<int, Disposable>` |
46+
| `AddScopedAsyncLfu` | Registers `ConcurrentLfu<int, Disposable>` as a singleton `IScopedAsyncCache<int, Disposable>` |

0 commit comments

Comments
 (0)