【发布时间】:2016-08-04 05:39:04
【问题描述】:
我目前正在与WebAPI 2 合作并考虑升级到ASP.Net Core。
目前,我的 http 缓存由 Strathweb.CacheOutput.WebApi2 管理,我意识到 Asp.Net Core 不支持它。
我喜欢它的主要特点:
- 完全控制缓存的内容和方式
- 每当发生 post/put/delete/patch 时缓存自动失效
完整的功能列表,Strathweb.CacheOutput.WebApi2 github:https://github.com/filipw/Strathweb.CacheOutput
知道相应的包吗?
(在最坏的情况下,我显然必须编写自己的逻辑......)
注意:我知道ResponseCacheAttribute,但它缺少自动失效功能
【问题讨论】:
-
您是否研究过内置缓存? github.com/aspnet/Caching
标签: c# asp.net asp.net-web-api asp.net-core http-caching