⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 icacheitemexpiration.cs

📁 HeyCacher 高性能缓存方案(带源码) 1. 文件的所有权益归上传用户所有 2. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途 3. CSDN下载频道仅提供交流平台
💻 CS
字号:
//===============================================================================
// CSDN HeyCache 
//===============================================================================
// 修改记录:[按最后修改时间倒排序]
// 2007.06.11 by tangwei
//
// 代码来源:参考于dotnet企业库3.0版
//===============================================================================
using System;
using System.Collections.Generic;
using System.Text;

namespace HeyCacher.Components.Expirations
{
    /// <summary>
    /// 缓存过期策略的接口规范
    /// </summary>
    public interface ICacheItemExpiration
    {
        /// <summary>
        ///	是否过期了
        /// </summary>
        /// <returns>Returns true if the item has expired, otherwise false.</returns>
        bool HasExpired();

        /// <summary>
        /// 过期通知
        /// </summary>
        void Notify();

        /// <summary>
        /// 初始化
        /// Called to give the instance the opportunity to initialize itself from information contained in the CacheItem.
        /// </summary>
        /// <param name="owningExpirationItem">CacheItem that owns this expiration object</param>
        void Initialize(Components.ExpirationItem owningExpirationItem);

        /// <summary>
        /// 通过参数建造该实例
        /// </summary>
        /// <param name="Params"></param>
        void Create(params string[] Params);
    }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -