|
@@ -62,10 +62,10 @@ public class RedisService implements Serializable {
|
|
|
|
|
|
Pipeline pipeline = jedis.pipelined();
|
|
Pipeline pipeline = jedis.pipelined();
|
|
for (Map.Entry<String, String> e : batch.entrySet()) {
|
|
for (Map.Entry<String, String> e : batch.entrySet()) {
|
|
- pipeline.setex(e.getKey(), expireSeconds, e.getValue());
|
|
|
|
|
|
+ // pipeline.setex(e.getKey(), expireSeconds, e.getValue());
|
|
// 压缩后的key,升级后进行替换
|
|
// 压缩后的key,升级后进行替换
|
|
try {
|
|
try {
|
|
- pipeline.setex("snappy:" + e.getKey(), expireSeconds, CompressionUtil.snappyCompress(e.getValue()));
|
|
|
|
|
|
+ pipeline.setex(e.getKey(), expireSeconds, CompressionUtil.snappyCompress(e.getValue()));
|
|
} catch (Exception ex) {
|
|
} catch (Exception ex) {
|
|
}
|
|
}
|
|
}
|
|
}
|