using System; namespace Admin.Core.Common { /// /// 缓存接口 /// public interface ICaching { /// /// 使用键和值将某个缓存项插入缓存中,并指定基于时间的过期详细信息 /// /// /// /// void Set(string key, object obj, int seconds = 0); /// /// 取缓存项,如果不存在则返回空 /// /// /// /// T Get(string key); /// /// 移除指定键的缓存项 /// /// void Remove(string key); } }