mirror of
https://gitee.com/ccnetcore/Yi
synced 2026-03-04 08:40:52 +08:00
19 lines
446 B
C#
19 lines
446 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Yi.Framework.Common.Attribute
|
|
{
|
|
[AttributeUsage(AttributeTargets.Method, Inherited = true)]
|
|
public class CachingAttribute : System.Attribute
|
|
{
|
|
/// <summary>
|
|
/// 缓存绝对过期时间(分钟)
|
|
/// </summary>
|
|
public int AbsoluteExpiration { get; set; } = 30;
|
|
|
|
}
|
|
}
|