Sfoglia il codice sorgente

feat:去除历史特征的写入

zhaohaipeng 1 mese fa
parent
commit
55aefa634f

+ 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()));