title: Multi key in redis by spring boot
body: <p><code>redisTemplate.opsForHash().get (&quot;CAR&quot;, name);</code></p>
  <p>so we get the car by name.</p>
  <p><code>redisTemplate.opsForHash ().put (&quot;CAR&quot;, &quot;TOYOTA&quot;, &quot;PRIUS&quot;);</code></p>
  <p>This is how we write data to REDIS.
  That is, using TOYOTA and CAR we can get PRIUS.</p>
  <p>Now, I should understand how to record and find data by a pair of keys. For example, I should find a car not only by brand (&quot;TOYOTA&quot;) but also by color.</p>
  <p><code>redisTemplate.opsForHash () .put (&quot; CAR &quot;,&quot; TOYOTA &quot;+&quot; WHITE &quot;,&quot; PRIUS &quot;);</code></p>
  <p>The question is how to use the second parameter?</p>
  <p><code>redisTemplate.opsForHash (). get (&quot; CAR &quot;, name + color);</code></p>
  <p>In my case, the pair name and color are unique and i need to search for them.</p>
  <p><strong>In case of searching by one value, everything works fine, but it is not clear how to search by two parameters</strong>.</p>
  <p>thanks in advance</p>