@@ -116,7 +116,7 @@ services.Configure<MsalDistributedTokenCacheAdapterOptions>(options =>
116
116
// Then, choose your implementation of distributed cache
117
117
// -----------------------------------------------------
118
118
119
- // For instance, the distributed in-memory cache (not cleared when you stop the app)
119
+ // good for prototyping and testing, but this is NOT persisted and it is NOT distributed - do not use in production
120
120
services.AddDistributedMemoryCache();
121
121
122
122
// Or a Redis cache
@@ -163,10 +163,10 @@ services.AddCosmosCache((CosmosCacheOptions cacheOptions) =>
163
163
```
164
164
165
165
For more information , see :
166
- - [Difference between in - memory and distributed in memory caches ](https :// github.com/AzureAD/microsoft-identity-web/wiki/token-cache-serialization#inmemory-vs-distributedmemory-cache-options)
167
166
- [Distributed cache advanced options ](https :// github.com/AzureAD/microsoft-identity-web/wiki/L1-Cache-in-Distributed-(L2)-Token-Cache)
168
167
- [Handle L2 cache eviction ](https :// github.com/AzureAD/microsoft-identity-web/wiki/Handle-L2-cache-eviction)
169
168
- [Set up a Redis cache in Docker ](https :// github.com/AzureAD/microsoft-identity-web/wiki/Set-up-a-Redis-cache-in-Docker)
169
+ - [Troubleshooting ](https :// github.com/AzureAD/microsoft-identity-web/wiki/Token-Cache-Troubleshooting)
170
170
171
171
The usage of distributed cache is featured in the [ASP .NET Core web app tutorial ](/ aspnet / core / tutorials / first - mvc - app / ) in the [phase 2 - 2 token cache ](https :// github.com/Azure-Samples/active-directory-aspnetcore-webapp-openidconnect-v2/tree/master/2-WebApp-graph-user/2-2-TokenCache).
172
172
@@ -276,7 +276,6 @@ You can also specify options to limit the size of the in-memory token cache:
276
276
);
277
277
```
278
278
279
-
280
279
#### Distributed caches
281
280
282
281
If you use `app .AddDistributedTokenCache `, the token cache is an adapter against the .NET `IDistributedCache ` implementation . So you can choose between a distributed memory cache , a SQL Server cache , a Redis cache , or an Azure Cosmos DB cache . For details about the `IDistributedCache ` implementations , see [Distributed memory cache ](/ aspnet / core / performance / caching / distributed ).
@@ -386,10 +385,10 @@ Here's the code for an Azure Cosmos DB cache:
386
385
387
386
For more information about distributed caches , see :
388
387
389
- - [Difference between in - memory and distributed in - memory caches ](https :// github.com/AzureAD/microsoft-identity-web/wiki/token-cache-serialization#inmemory-vs-distributedmemory-cache-options)
390
388
- [Distributed cache advanced options ](https :// github.com/AzureAD/microsoft-identity-web/wiki/L1-Cache-in-Distributed-(L2)-Token-Cache)
391
389
- [Handle L2 cache eviction ](https :// github.com/AzureAD/microsoft-identity-web/wiki/Handle-L2-cache-eviction)
392
390
- [Set up a Redis cache in Docker ](https :// github.com/AzureAD/microsoft-identity-web/wiki/Set-up-a-Redis-cache-in-Docker)
391
+ - [Troubleshooting ](https :// github.com/AzureAD/microsoft-identity-web/wiki/Token-Cache-Troubleshooting)
393
392
394
393
### Disabling a legacy token cache
395
394
0 commit comments