【问题标题】:WRONGTYPE Operation with Redisson Live Objects使用 Redisson 活动对象的 WRONGTYPE 操作
【发布时间】:2020-10-28 17:15:42
【问题描述】:

我已将我的Redisson 库升级到3.13.2(从3.11.1),从那时起,我在执行liveObjectService.persist(reporterObject) 时不断收到WRONGTYPE Operation against a key holding the wrong kind of value

我有以下课程:

@Getter
@ToString
@Builder
@AllArgsConstructor
@NoArgsConstructor
@REntity
public class ReporterObject {
    @RId
    private long id;
    private long rId;
    @RIndex
    @Setter
    private long sId;
    @Setter
    private boolean ac;
    @RIndex
    @Setter
    private Long parId;
    private int type;
    private Long pId;
    @Setter
    private ReporterObject parent; // can be null
    @Setter
    private int n_a = 0;
}

那会是什么问题呢?

谢谢

【问题讨论】:

  • 您是否尝试过刷新 Redis 缓存?
  • @NikitaKoksharov 是的,已经尝试过了,它奏效了。忘记更新了

标签: java redis redisson


【解决方案1】:

正如@NikitaKoksharov 所说,刷新缓存可以解决问题。

【讨论】:

    猜你喜欢
    • 2019-02-28
    • 2016-10-23
    • 2020-07-19
    • 2021-04-10
    • 2018-06-01
    • 2016-05-04
    • 1970-01-01
    • 2021-05-25
    • 1970-01-01
    相关资源
    最近更新 更多