【文件属性】:
文件名称:Strathweb.CacheOutput:ASP.NET Web API CacheOutput-库,可用于缓存ApiControllers的输出
文件大小:307KB
文件格式:ZIP
更新时间:2021-02-20 04:10:27
C#
ASP.NET Web API CacheOutput
一个小型库,将类似于MVC的“ OutputCacheAttribute”的缓存选项引入Web API操作。
CacheOutput将负责服务器端缓存,并为您设置适当的客户端(响应)标头。
您可以指定以下属性:
ClientTimeSpan (对应于CacheControl MaxAge HTTP标头)
MustRevalidate (与MustRevalidate HTTP标头相对应-指示原始服务器在缓存条目过时时是否需要在以后的任何使用中对缓存条目进行重新验证)
ExcludeQueryStringFromCacheKey (不要按查询字符串值更改缓存)
ServerTimeSpan (应在服务器端将响应缓存多长时间的时间)
AnonymousOnly (仅当未设置Thread.CurrentPrincipal时才
【文件预览】:
Strathweb.CacheOutput-dev
----RunDebugBuild.bat(29B)
----.gitattributes(483B)
----Build.bat(113B)
----Build.proj(1KB)
----License.txt(606B)
----src()
--------WebApi.OutputCache.Core()
--------WebApi.OutputCache.V2()
----RunReleaseBuild.bat(31B)
----test()
--------WebApi.OutputCache.V2.Tests()
--------WebApi.OutputCache.Core.Tests()
----README.md(15KB)
----sample()
--------WebApi.OutputCache.V2.Demo()
----WebAPI.OutputCache.sln(4KB)
----.gitignore(1KB)
----.nuget()
--------NuGet.exe(636KB)
--------NuGet.targets(7KB)
--------NuGet.Config(164B)