Skip to content

Commit 75747c3

Browse files
authored
Merge pull request #7 from bitfaster/users/alexpeck/rm2
docs
2 parents 99720ef + 7777504 commit 75747c3

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ Extension methods for setting up [caches](https://github.com/bitfaster/BitFaster
66
To use with an `IServiceCollection` instance at startup:
77

88
```cs
9-
services.AddLru<int, int>(builder =>
9+
services.AddLru<int, string>(builder =>
1010
builder
1111
.WithCapacity(666)
1212
.Build());
1313
```
1414

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.
1616

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

@@ -29,13 +29,13 @@ There is an extension method for each [cache interface](https://github.com/bitfa
2929
To use with an `IServiceCollection` instance at startup:
3030

3131
```cs
32-
services.AddLfu<int, int>(builder =>
32+
services.AddLfu<int, string>(builder =>
3333
builder
3434
.WithCapacity(666)
3535
.Build());
3636
```
3737

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.
3939

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

src/BitFaster.Caching.DependencyInjection/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@
55
To use with an `IServiceCollection` instance at startup:
66

77
```cs
8-
services.AddLru<int, int>(builder =>
8+
services.AddLru<int, string>(builder =>
99
builder
1010
.WithCapacity(666)
1111
.Build());
1212
```
1313

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.
1515

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

@@ -28,13 +28,13 @@ There is an extension method for each [cache interface](https://github.com/bitfa
2828
To use with an `IServiceCollection` instance at startup:
2929

3030
```cs
31-
services.AddLfu<int, int>(builder =>
31+
services.AddLfu<int, string>(builder =>
3232
builder
3333
.WithCapacity(666)
3434
.Build());
3535
```
3636

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.
3838

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

0 commit comments

Comments
 (0)