You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
1.2 KiB
C#
34 lines
1.2 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Myshipping.Core.Service;
|
|
|
|
public interface ISysCacheService
|
|
{
|
|
bool Del(string key);
|
|
Task<bool> DelAsync(string key);
|
|
Task<bool> DelByPatternAsync(string key);
|
|
List<string> GetAllCacheKeys();
|
|
Task<List<long>> GetDataScope(long userId);
|
|
Task<List<long>> GetUsersDataScope(long userId);
|
|
Task<List<AntDesignTreeNode>> GetMenu(long userId, string appCode);
|
|
Task<List<string>> GetPermission(long userId);
|
|
Task SetDataScope(long userId, List<long> dataScopes);
|
|
Task SetUsersDataScope(long userId, List<long> dataScopes);
|
|
Task SetMenu(long userId, string appCode, List<AntDesignTreeNode> menus);
|
|
Task SetPermission(long userId, List<string> permissions);
|
|
bool Set(string key, object value);
|
|
Task<bool> SetAsync(string key, object value);
|
|
Task<bool> SetTimeoutAsync(string key, object value, TimeSpan ts);
|
|
string Get(string key);
|
|
Task<string> GetAsync(string key);
|
|
T Get<T>(string key);
|
|
Task<T> GetAsync<T>(string key);
|
|
bool Exists(string key);
|
|
Task<bool> ExistsAsync(string key);
|
|
Task<List<string>> GetAllPermission();
|
|
|
|
Task SetAllPermission(List<string> permissions);
|
|
}
|