31 lines
1.1 KiB
C#
31 lines
1.1 KiB
C#
/***********************************************************************
|
||
* Project: CoreCms.Net *
|
||
* Web: https://CoreCms.Net *
|
||
* ProjectName: 核心内容管理系统 *
|
||
* Author: 大灰灰 *
|
||
* Email: JianWeie@163.com *
|
||
* CreateTime: 2020-05-08 23:54:42
|
||
* Description: 暂无
|
||
***********************************************************************/
|
||
|
||
|
||
using System;
|
||
using System.Collections.Generic;
|
||
using System.Text;
|
||
|
||
namespace CoreCms.Net.Core.Attribute
|
||
{
|
||
/// <summary>
|
||
/// 这个Attribute就是使用时候的验证,把它添加到要缓存数据的方法中,即可完成缓存的操作。
|
||
/// </summary>
|
||
[AttributeUsage(AttributeTargets.Method, Inherited = true)]
|
||
public class CachingAttribute : System.Attribute
|
||
{
|
||
/// <summary>
|
||
/// 缓存绝对过期时间(分钟)
|
||
/// </summary>
|
||
public int AbsoluteExpiration { get; set; } = 30;
|
||
|
||
}
|
||
}
|