namespace Admin.NET.Core.Service; public interface ISysCacheService { Task AddCacheKey(string cacheKey); Task DelByPatternAsync(string key); Task DelCacheKey(string cacheKey); Task ExistsAsync(string cacheKey); Task> GetAllCacheKeys(); Task GetAsync(string cacheKey); Task GetStringAsync(string cacheKey); Task RemoveAsync(string key); Task SetAsync(string cacheKey, object value); Task SetAsync(string cacheKey, object value, TimeSpan expire); Task SetStringAsync(string cacheKey, string value); Task SetStringAsync(string cacheKey, string value, TimeSpan expire); Task> GetOrgIdList(long userId); Task SetOrgIdList(long userId, List orgIdList); Task> GetPermission(long userId); Task SetPermission(long userId, List permissions); Task GetMaxDataScopeType(long userId); Task SetMaxDataScopeType(long userId, int dataScopeType); Task DelByParentKeyAsync(string key); }