using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Yi.Framework.Module.Caching { /// /// 考虑到本地缓存与分布式缓存差异太大,使用功能限制太大,所以该抽象类淘汰 /// public abstract class CacheManager { public virtual bool Exits(string key) { throw new NotImplementedException(); } public virtual T Get(string key) { throw new NotImplementedException(); } public virtual bool Set(string key, T data, TimeSpan time) { throw new NotImplementedException(); } public virtual bool Set(string key, T data) { throw new NotImplementedException(); } public virtual long Del(string key) { throw new NotImplementedException(); } public virtual bool HSet(string key, string fieId, object data) { throw new NotImplementedException(); } public virtual bool HSet(string key, string fieId, object data, TimeSpan time) { throw new NotImplementedException(); } public virtual T HGet(string key, string field) { throw new NotImplementedException(); } public virtual long HDel(string key, params string[] par) { throw new NotImplementedException(); } public virtual long HLen(string key) { throw new NotImplementedException(); } public virtual Dictionary HGetAll(string key) { throw new NotImplementedException(); } /// /// 简单发布 /// /// /// /// public virtual long Publish(string channel, string message) { throw new NotImplementedException(); } public virtual bool LSet(string key, long index, object value) { throw new NotImplementedException(); } /// /// 列表插入头部 /// /// /// /// /// public virtual long LPush(string key, params T[] value) { throw new NotImplementedException(); } /// /// 列表弹出头部 /// /// /// /// public virtual T LPop(string key) { throw new NotImplementedException(); } public virtual string[] Keys(string pattern) { throw new NotImplementedException(); } } }