You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,13 +6,13 @@ Extension methods for setting up [caches](https://github.com/bitfaster/BitFaster
6
6
To use with an `IServiceCollection` instance at startup:
7
7
8
8
```cs
9
-
services.AddLru<int, int>(builder=>
9
+
services.AddLru<int, string>(builder=>
10
10
builder
11
11
.WithCapacity(666)
12
12
.Build());
13
13
```
14
14
15
-
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.
15
+
This adds a `ConcurrentLru` where the key is an integer and the cached value is a string. The builder delegate is used to configure the registered cache with a capacity of 666, see the [wiki](https://github.com/bitfaster/BitFaster.Caching/wiki/ConcurrentLru-Quickstart#builder-api) for more details about the builder API and configurable cache features.
16
16
17
17
There is an extension method for each [cache interface](https://github.com/bitfaster/BitFaster.Caching/wiki/Caches):
18
18
@@ -29,13 +29,13 @@ There is an extension method for each [cache interface](https://github.com/bitfa
29
29
To use with an `IServiceCollection` instance at startup:
30
30
31
31
```cs
32
-
services.AddLfu<int, int>(builder=>
32
+
services.AddLfu<int, string>(builder=>
33
33
builder
34
34
.WithCapacity(666)
35
35
.Build());
36
36
```
37
37
38
-
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.
38
+
This adds a `ConcurrentLfu` where the key is an integer and the cached value is a string. The builder delegate is used to configure the registered cache with a capacity of 666, see the [wiki](https://github.com/bitfaster/BitFaster.Caching/wiki/ConcurrentLfu-Quickstart#builder-api) for more details about the builder API and configurable cache features.
39
39
40
40
There is an extension method for each [cache interface](https://github.com/bitfaster/BitFaster.Caching/wiki/Caches):
Copy file name to clipboardExpand all lines: src/BitFaster.Caching.DependencyInjection/README.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,13 +5,13 @@
5
5
To use with an `IServiceCollection` instance at startup:
6
6
7
7
```cs
8
-
services.AddLru<int, int>(builder=>
8
+
services.AddLru<int, string>(builder=>
9
9
builder
10
10
.WithCapacity(666)
11
11
.Build());
12
12
```
13
13
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.
14
+
This adds a `ConcurrentLru` where the key is an integer and the cached value is a string. The builder delegate is used to configure the registered cache with a capacity of 666, see the [wiki](https://github.com/bitfaster/BitFaster.Caching/wiki/ConcurrentLru-Quickstart#builder-api) for more details about the builder API and configurable cache features.
15
15
16
16
There is an extension method for each [cache interface](https://github.com/bitfaster/BitFaster.Caching/wiki/Caches):
17
17
@@ -28,13 +28,13 @@ There is an extension method for each [cache interface](https://github.com/bitfa
28
28
To use with an `IServiceCollection` instance at startup:
29
29
30
30
```cs
31
-
services.AddLfu<int, int>(builder=>
31
+
services.AddLfu<int, string>(builder=>
32
32
builder
33
33
.WithCapacity(666)
34
34
.Build());
35
35
```
36
36
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.
37
+
This adds a `ConcurrentLfu` where the key is an integer and the cached value is a string. The builder delegate is used to configure the registered cache with a capacity of 666, see the [wiki](https://github.com/bitfaster/BitFaster.Caching/wiki/ConcurrentLfu-Quickstart#builder-api) for more details about the builder API and configurable cache features.
38
38
39
39
There is an extension method for each [cache interface](https://github.com/bitfaster/BitFaster.Caching/wiki/Caches):
0 commit comments