zhao_js
2024-01-04 6898a19dcf7f52a1f93f8775cdfafc1685b4ee97
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
using System;
 
namespace Link.Api.Attributes
{
    /// <summary>
    /// 释放缓存
    /// </summary>
    [AttributeUsage(AttributeTargets.Class, AllowMultiple = false, Inherited = true)]
    public class FlushCacheAttribute : Attribute
    {
        /// <summary>
        /// 是否释放
        /// </summary>
        public bool IsFlush { get; set; }
        /// <summary>
        /// 构造函数
        /// </summary>
        /// <param name="isFlush"></param>
        public FlushCacheAttribute(bool isFlush = true)
        {
            this.IsFlush = isFlush;
        }
    }
}