优化代码

This commit is contained in:
RuoYi
2024-05-29 12:20:14 +08:00
parent edb1c614d0
commit f0efa914fe
3 changed files with 13 additions and 4 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());
}
/**