mirror of
https://gitee.com/orangeform/orange-admin.git
synced 2026-01-17 18:46:36 +08:00
@@ -271,7 +271,7 @@ public class SaTokenUtil {
|
|||||||
Cache cache = cacheManager.getCache(CacheConfig.CacheEnum.USER_PERMISSION_CACHE.name());
|
Cache cache = cacheManager.getCache(CacheConfig.CacheEnum.USER_PERMISSION_CACHE.name());
|
||||||
Assert.notNull(cache, "Cache USER_PERMISSION_CACHE can't be NULL.");
|
Assert.notNull(cache, "Cache USER_PERMISSION_CACHE can't be NULL.");
|
||||||
Cache.ValueWrapper wrapper = cache.get(permKey);
|
Cache.ValueWrapper wrapper = cache.get(permKey);
|
||||||
if (wrapper == null) {
|
if (wrapper == null || CollUtil.isEmpty((Set<String>) wrapper.get())) {
|
||||||
RSet<String> permSet = redissonClient.getSet(permKey);
|
RSet<String> permSet = redissonClient.getSet(permKey);
|
||||||
localPermSet = permSet.readAll();
|
localPermSet = permSet.readAll();
|
||||||
cache.put(permKey, localPermSet);
|
cache.put(permKey, localPermSet);
|
||||||
|
|||||||
Reference in New Issue
Block a user