title: How to use counters in a redis key?
body: <p>Is there a way to do this in redis ?</p>
  
  <pre><code>SET counter 0
  INCR counter
  SET KEY:{counter} "Content of line 1"
  INCR counter
  SET KEY:{counter} "Different content of line 2"
  </code></pre>
  
  <p>My example code should be substituted (i.e., transformed at runtime by the redis-cli) into:  </p>
  
  <pre><code>SET counter 0
  INCR counter
  SET KEY:1 "Content of line 1"
  INCR counter
  SET KEY:2 "Different content of line 2"
  etc.
  </code></pre>
  
  <p>My problem is NOT how to auto-increment the counter.<br>
  My problem is syntax: How to include a generic {wildcard} into something like:   </p>
  
  <pre><code>SET keyname:{currentcounter} "value" ...
  </code></pre>
  
  <p>Any help is appreciated. Thanks a lot !</p>
  
  <p>bernie</p>