feature: 收藏功能.

This commit is contained in:
lijiahang
2023-09-01 17:52:00 +08:00
parent a4875154df
commit fb42e31f6e
2 changed files with 22 additions and 15 deletions

View File

@@ -34,26 +34,11 @@ public class RedisUtils {
* @return keys
*/
public static Set<String> scanKeys(String match) {
// TODO TEST
return scanKeys(ScanOptions.scanOptions()
.match(match)
.build());
}
/**
* 扫描 key
*
* @param match 匹配值
* @param count 数量
* @return keys
*/
public static Set<String> scanKeys(String match, int count) {
return scanKeys(ScanOptions.scanOptions()
.match(match)
.count(count)
.build());
}
/**
* 扫描 key
*