cache key列表增加排序,否则多了很乱

update ruoyi-framework/src/main/java/com/ruoyi/framework/web/service/CacheService.java.

Signed-off-by: 刘继东 <wwwliujidong@163.com>
This commit is contained in:
刘继东 2024-04-24 00:11:54 +00:00 committed by Gitee
parent f31e6bd1bb
commit f70460070e
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 2 additions and 1 deletions

View File

@ -1,6 +1,7 @@
package com.ruoyi.framework.web.service;
import java.util.Set;
import java.util.TreeSet;
import org.apache.commons.lang3.ArrayUtils;
import org.springframework.stereotype.Service;
import com.ruoyi.common.constant.Constants;
@ -33,7 +34,7 @@ public class CacheService
*/
public Set<String> getCacheKeys(String cacheName)
{
return CacheUtils.getCache(cacheName).keys();
return new TreeSet<>(CacheUtils.getCache(cacheName).keys());
}
/**