|
@@ -282,6 +282,11 @@ public class KuaishouHotStore {
|
|
|
redis.opsForStream().acknowledge(stream, group, ids.toArray(String[]::new));
|
|
redis.opsForStream().acknowledge(stream, group, ids.toArray(String[]::new));
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ public void delete(List<String> ids) {
|
|
|
|
|
+ if (ids == null || ids.isEmpty()) return;
|
|
|
|
|
+ redis.opsForStream().delete(stream, ids.toArray(String[]::new));
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
public void trim(long maxLen) {
|
|
public void trim(long maxLen) {
|
|
|
if (maxLen > 0) redis.opsForStream().trim(stream, maxLen, false);
|
|
if (maxLen > 0) redis.opsForStream().trim(stream, maxLen, false);
|
|
|
}
|
|
}
|