Skip to content

Commit 6052316

Browse files
authored
Merge pull request #9 from bitfaster/users/alexpeck/tkey
TKey TValue
2 parents 238d79b + a427f34 commit 6052316

File tree

2 files changed

+16
-16
lines changed

2 files changed

+16
-16
lines changed

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ There is an extension method for each [cache interface](https://github.com/bitfa
1818

1919
| Extension | Result |
2020
|-----------|--------|
21-
| `AddLru` | Registers `ConcurrentLru<int, int>` as a singleton `ICache<int, int>` |
22-
| `AddAsyncLru` | Registers `ConcurrentLru<int, int>` as a singleton `IAsyncCache<int, int>` |
23-
| `AddScopedLru` | Registers `ConcurrentLru<int, Disposable>` as a singleton `IScopedCache<int, Disposable>` |
24-
| `AddScopedAsyncLru` | Registers `ConcurrentLru<int, Disposable>` as a singleton `IScopedAsyncCache<int, Disposable>` |
21+
| `AddLru<TKey, TValue>` | Registers `ConcurrentLru<TKey, TValue>` as a singleton `ICache<TKey, TValue>` |
22+
| `AddAsyncLru<TKey, TValue>` | Registers `ConcurrentLru<TKey, TValue>` as a singleton `IAsyncCache<TKey, TValue>` |
23+
| `AddScopedLru<TKey, TValue>` | Registers `ConcurrentLru<TKey, TValue>` as a singleton `IScopedCache<TKey, TValue>` |
24+
| `AddScopedAsyncLru<TKey, TValue>` | Registers `ConcurrentLru<TKey, TValue>` as a singleton `IScopedAsyncCache<TKey, TValue>` |
2525

2626

2727
# ConcurrentLfu
@@ -41,7 +41,7 @@ There is an extension method for each [cache interface](https://github.com/bitfa
4141

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

src/BitFaster.Caching.DependencyInjection/README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ There is an extension method for each [cache interface](https://github.com/bitfa
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<TKey, TValue>` | Registers `ConcurrentLru<TKey, TValue>` as a singleton `ICache<TKey, TValue>` |
21+
| `AddAsyncLru<TKey, TValue>` | Registers `ConcurrentLru<TKey, TValue>` as a singleton `IAsyncCache<TKey, TValue>` |
22+
| `AddScopedLru<TKey, TValue>` | Registers `ConcurrentLru<TKey, TValue>` as a singleton `IScopedCache<TKey, TValue>` |
23+
| `AddScopedAsyncLru<TKey, TValue>` | Registers `ConcurrentLru<TKey, TValue>` as a singleton `IScopedAsyncCache<TKey, TValue>` |
2424

2525

2626
# ConcurrentLfu
@@ -40,7 +40,7 @@ There is an extension method for each [cache interface](https://github.com/bitfa
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<TKey, TValue>` | Registers `ConcurrentLfu<TKey, TValue>` as a singleton `ICache<TKey, TValue>` |
44+
| `AddAsyncLfu<TKey, TValue>` | Registers `ConcurrentLfu<TKey, TValue>` as a singleton `IAsyncCache<TKey, TValue>` |
45+
| `AddScopedLfu<TKey, TValue>` | Registers `ConcurrentLfu<TKey, TValue>` as a singleton `IScopedCache<TKey, TValue>` |
46+
| `AddScopedAsyncLfu<TKey, TValue>` | Registers `ConcurrentLfu<TKey, TValue>` as a singleton `IScopedAsyncCache<TKey, TValue>` |

0 commit comments

Comments
 (0)