Quantcast
Channel: Active questions tagged redis+java - Stack Overflow
Viewing all articles
Browse latest Browse all 2204

Data is not preserved when stored in Redis

$
0
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;    }}

When saved to Redis, you can see that Post in PostOwnership has full of attributes:

enter image description here

But when I get by key from Redis, some of attributes in Post are no longer available.

enter image description here

Could you help me know what is this problem and the solution for it, bros?


Viewing all articles
Browse latest Browse all 2204

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>