using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace CC.Yi.Common.Cache { public interface ICacheWriter { bool AddCache(string key, T value, DateTime expDate); bool AddCache(string key, T value); bool RemoveCache(string key); T GetCache(string key); bool SetCache(string key, T value, DateTime expDate); bool SetCache(string key, T value); } }