1

审计类

public class Audit {
    private Long createdDateTime;
    private Long updatedDateTime;
    private String createdBy;
    private String updatedBy;
}

实体

public class User extends Audit {
  

}

有没有办法在 spring redis 中监听实体更新/创建事件?

4

1 回答 1

0

截至目前,更新/创建事件只能在 spring-data-jpa 中捕获。为什么不使用 spring-data-jpa 作为永久存储,因为它具有更多的内置功能和 redis 作为缓存存储?

于 2020-07-15T19:20:37.803 回答