DEV Community

Trần Tuấn Anh
Trần Tuấn Anh

Posted on

Data is not preserved when stored in Redis

Data is not preserved when stored in Redis

0

I am using the lastest Redis I saved a object called PostOwnership as below to a given key

public class PostOwnership implements Serializable {
    @Id
    @GeneratedValue
    private Long id;
    private final Long score;
    @TargetNode
    private final Post post;

    public PostOwnership(Post post, Long score) {
        this.post = post;
        this.score = score;

Top comments (0)