src/Library/NetPro.ResponseCache/ResponseCacheOption.cs
(完整代码) 967Busing System;
using System.Collections.Generic;
namespace NetPro.ResponseCache
{
public class ResponseCacheOption
{
public ResponseCacheOption()
{
IgnoreVaryByQueryKeys = new List<string>();
}
/// <summary>
/// 是否启用,默认启用
/// </summary>
public bool Enabled { get; set; } = true;
/// <summary>
///
/// </summary>
public int Duration { get; set; }
/// <summary>
/// 全局忽略缓存的值
/// </summary>
public List<string> IgnoreVaryByQueryKeys { get; set; }
/// <summary>
/// 是否集群
/// </summary>
public bool Cluster { get; set; }
}
/// <summary>
/// 忽略缓存
/// </summary>
[AttributeUsage(AttributeTargets.Method | AttributeTargets.Class, Inherited = false)]
public class IgnorePostResponseCacheAttribute : Attribute
{
}
}
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。