Extensions: Relocating CacheProfile to Caching.Abstractions

Created on 10 Oct 2016  路  4Comments  路  Source: dotnet/extensions

The idea here is to move the CacheProfile from MVC https://github.com/aspnet/Mvc/blob/760c8f38678118734399c58c2dac981ea6e47046/src/Microsoft.AspNetCore.Mvc.Core/CacheProfile.cs to the Microsoft.Extensions.Caching.Abstractions package. The CacheProfile can then be resolved by middlewares such as ResponseCaching. Configuring the profile can also be implemented in a similar fashion to CORS options/policy.

cc @davidfowl @rynowak @Tratcher

area-caching needs design

Most helpful comment

Name it CachePolicy instead and have CacheProfile derive from CachePolicy

All 4 comments

Do we have a way of doing this without a breaking change?

Name it CachePolicy instead and have CacheProfile derive from CachePolicy

Yeah that could work! Probably 馃槃

Any thoughts on this ancient issue? Seems like it's not really that useful after all :).

Was this page helpful?
0 / 5 - 0 ratings