title: how can I save a List of Objects into Redis using only one key - value?
body: <p>I am trying to do this.</p>
  
  <p>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.</p>
  
  <p>So far I only have this</p>
  
  <pre><code>@Autowired
  private StringRedisTemplate redisTmpl;
  </code></pre>
  
  <p>And I can save like this </p>
  
  <pre><code>redisTmpl.opsForValue().set("foo", "bar");
  </code></pre>
  
  <p>Works pretty good, but instead of Bar , I want to save my list of objects (using this <code>StringRedisTemplate</code>.</p>
  
  <p>Any idea how to do it?</p>
  
  <p>Or maybe using another way? But I need to save all the list in just one key.</p>
  
  <p>Thanks</p>