namespace Admin.NET.Application
{
///
///
///
public interface ISysCacheService
{
///
///
///
///
///
Task AddCacheKey(string cacheKey);
///
///
///
///
///
Task DelByPatternAsync(string key);
///
///
///
///
///
Task DelCacheKey(string cacheKey);
///
///
///
///
///
bool Exists(string cacheKey);
///
///
///
///
Task> GetAllCacheKeys();
///
///
///
///
///
///
Task GetAsync(string cacheKey);
///
///
///
///
///
Task> GetDataScope(long userId);
///
///
///
///
///
///
Task> GetMenu(long userId, string appCode);
///
///
///
///
///
Task> GetPermission(long userId);
///
///
///
///
///
Task RemovePermission(long userId);
///
///
///
///
///
Task GetStringAsync(string cacheKey);
///
///
///
///
///
Task RemoveAsync(string key);
///
///
///
///
///
///
Task SetAsync(string cacheKey, object value);
///
///
///
///
///
///
Task SetDataScope(long userId, List dataScopes);
///
///
///
///
///
///
///
Task SetMenu(long userId, string appCode, List menus);
///
///
///
///
///
///
Task SetPermission(long userId, List permissions);
///
///
///
///
///
///
Task SetStringAsync(string cacheKey, string value);
}
}