namespace ASC.Common.Caching; [Singletone(typeof(AscCache))] public interface ICache { T Get(string key) where T : class; void Insert(string key, object value, TimeSpan sligingExpiration); void Insert(string key, object value, DateTime absolutExpiration); void Remove(string key); void Remove(Regex pattern); ConcurrentDictionary HashGetAll(string key); T HashGet(string key, string field); void HashSet(string key, string field, T value); }