I am trying to do this.
I have a list of objects (Custom objects), I want to save them all in a single register in Redis, is it possible to save them as ajax somehow? I was reading about Jackson but I couldn't figure it how.
So far I only have this
@Autowired
private StringRedisTemplate redisTmpl;
And I can save like this
redisTmpl.opsForValue().set("foo", "bar");
Works pretty good, but instead of Bar , I want to save my list of objects (using this StringRedisTemplate.
Any idea how to do it?
Or maybe using another way? But I need to save all the list in just one key.
Thanks
ajaxis negotiation protocol not serialization method, I believe you meanJSONinstead.