using System.Collections.Generic; using System.Threading.Tasks; namespace GDZZ.Core.Service; public interface ISysCacheService { bool Del(string key); Task DelAsync(string key); Task DelByPatternAsync(string key); List GetAllCacheKeys(); Task> GetDataScope(long userId); Task> GetUsersDataScope(long userId); Task> GetMenu(long userId, string appCode); Task> GetPermission(long userId); Task SetDataScope(long userId, List dataScopes); Task SetUsersDataScope(long userId, List dataScopes); Task SetMenu(long userId, string appCode, List menus); Task SetPermission(long userId, List permissions); bool Set(string key, object value); Task SetAsync(string key, object value); string Get(string key); Task GetAsync(string key); T Get(string key); Task GetAsync(string key); bool Exists(string key); Task ExistsAsync(string key); Task> GetAllPermission(); Task SetAllPermission(List permissions); }