Skip to content

Commit fea4d69

Browse files
authored
Adding details for the SQL cache
Fixes #283 283
1 parent 12d1b6d commit fea4d69

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

2-WebApp-graph-user/2-2-TokenCache/README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,10 @@ Note: if you had used the automation to setup your application mentioned in [Ste
175175

176176
Starting from the [previous phase of the tutorial](../../2-WebApp-graph-user/2-1-Call-MSGraph), the code was incrementally updated with the following steps:
177177

178+
### Reference Microsoft.Extensions.Caching.SqlServer
179+
180+
This sample proposes a distributed SQL token cache. To use it, you'll need to add a reference to the `Microsoft.Extensions.Caching.SqlServer` NuGet package
181+
178182
### Update the `Startup.cs` file to enable Token caching using Sql database.
179183

180184
```CSharp
@@ -205,6 +209,7 @@ The files `MSALAppSqlTokenCacheProvider.cs` and `MSALPerUserSqlTokenCacheProvide
205209
## Next steps
206210

207211
- Learn how to enable distributed caches in [token cache serialization](../2.2.%20token%20cache%20serialization)
212+
- Learn more about the [Distributed SQL Server Cache](https://docs.microsoft.com/aspnet/core/performance/caching/distributed#distributed-sql-server-cache)
208213
- Learn how the same principle you've just learnt can be used to call:
209214
- [several Microsoft APIs](../../3-WebApp-multi-APIs), which will enable you to learn how incremental consent and conditional access is managed in your Web App
210215
- 3rd party, or even [your own Web API](../../4-WebApp-your-API), which will enable you to learn about custom scopes

0 commit comments

Comments
 (0)