Преглед на файлове

feat:去除历史特征的写入

zhaohaipeng преди 1 месец
родител
ревизия
55aefa634f
променени са 1 файла, в които са добавени 5 реда и са изтрити 5 реда
  1. 5 5
      recommend-feature-produce/src/main/java/com/tzld/piaoquan/recommend/feature/produce/service/RedisService.java

+ 5 - 5
recommend-feature-produce/src/main/java/com/tzld/piaoquan/recommend/feature/produce/service/RedisService.java

@@ -87,11 +87,11 @@ public class RedisService implements Serializable {
         for (Map.Entry<String, String> e : batch.entrySet()) {
             // pipeline.setex(e.getKey(), expireSeconds, e.getValue());
             // 压缩后的key,升级后进行替换
-            try {
-                pipeline.setex(e.getKey(), expireSeconds, CompressionUtil.snappyCompress(e.getValue()));
-            } catch (Exception ex) {
-            }
-
+            // try {
+            //     pipeline.setex(e.getKey(), expireSeconds, CompressionUtil.snappyCompress(e.getValue()));
+            // } catch (Exception ex) {
+            // }
+            //
             try {
                 String newKey = String.format("%s:v2", e.getKey());
                 pipeline.setex(newKey.getBytes(StandardCharsets.UTF_8), expireSeconds, CompressionUtil.snappyCompressV2(e.getValue()));