mirror of
https://gitee.com/ccnetcore/Yi
synced 2026-04-05 16:56:35 +08:00
增加缓存AOP切面
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
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;
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user