Skip to content

Commit d4956cf

Browse files
authored
Update hybrid-cache.md (#33436)
Use .NET 6+ `builder.Services` pattern
1 parent 88be785 commit d4956cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

aspnetcore/release-notes/aspnetcore-9/includes/hybrid-cache.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ To simplify and improve this code with `HybridCache`, we first need to add the n
5959
Register the `HybridCache` service, like you would register an `IDistributedCache` implementation:
6060

6161
```csharp
62-
services.AddHybridCache(); // Not shown: optional configuration API.
62+
builder.Services.AddHybridCache(); // Not shown: optional configuration API.
6363
```
6464

6565
Now most caching concerns can be offloaded to `HybridCache`:

0 commit comments

Comments
 (0)