using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace CY.Infrastructure.Cache { /// /// 缓存接口 /// public interface ICacheStrategy { /// /// 添加指定ID的对象 /// /// /// void AddObject(string objId, object o); /// /// 添加指定ID的对象(关联指定文件组) /// /// /// /// void AddObjectWithFileChange(string objId, object o, string[] files); /// /// 添加指定ID的对象(关联指定键值组) /// /// /// /// void AddObjectWithDepend(string objId, object o, string[] dependKey); /// /// 移除指定ID的对象 /// /// void RemoveObject(string objId); /// /// 返回指定ID的对象 /// /// /// object RetrieveObject(string objId); /// /// 到期时间 /// int TimeOut { set; get; } } }