using System; using System.Collections.Generic; namespace SqlSugar { public interface ICacheService { void Add(string key, V value); void Add(string key, V value, int cacheDurationInSeconds); bool ContainsKey(string key); V Get(string key); IEnumerable GetAllKey(); void Remove(string key); V GetOrCreate(string cacheKey, Func create,int cacheDurationInSeconds=int.MaxValue); } }