ke_junjie
2025-06-04 84620534eb627e95811b971a4b552b6a177829bf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
namespace iWare.Wms.Application
{
    public interface ISysCacheService
    {
        Task AddCacheKey(string cacheKey);
 
        Task DelByPatternAsync(string key);
 
        Task DelCacheKey(string cacheKey);
 
        bool Exists(string cacheKey);
 
        Task<List<string>> GetAllCacheKeys();
 
        Task<T> GetAsync<T>(string cacheKey);
 
        Task<List<long>> GetDataScope(long userId);
 
        Task<List<AntDesignTreeNode>> GetMenu(long userId, string appCode);
 
        Task<List<string>> GetPermission(long userId);
 
        Task RemovePermission(long userId);
 
        Task<string> GetStringAsync(string cacheKey);
 
        Task RemoveAsync(string key);
 
        Task SetAsync(string cacheKey, object value);
 
        Task SetDataScope(long userId, List<long> dataScopes);
 
        Task SetMenu(long userId, string appCode, List<AntDesignTreeNode> menus);
 
        Task SetPermission(long userId, List<string> permissions);
 
        Task SetStringAsync(string cacheKey, string value);
    }
}