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
### Example: Configure CachePolicy via MemoryCacheProvider in StartUp, for DI
64
61
62
+
```csharp
63
+
// (We pass a whole PolicyRegistry by dependency injection rather than the individual policy,
64
+
// on the assumption the app will probably use multiple policies.)
65
65
66
-
// Or (1c): Configure by dependency injection within ASP.NET Core
67
-
// See https://docs.microsoft.com/en-us/aspnet/core/performance/caching/memory
68
-
// and https://docs.microsoft.com/en-us/aspnet/core/fundamentals/dependency-injection#registering-your-own-services
69
-
70
-
// (In this example we choose to pass a whole PolicyRegistry by dependency injection rather than the individual policy, on the assumption the webapp will probably use multiple policies across the app.)
0 commit comments