title: How to store data in redis like mysql structure Or search redis data by value
body: <p>I'm beginner for redis development and went through the redis documentation also started to develop application. </p>
  
  <p>My objective is : Need to store few rows(each contains 4 values of data) in a table and then i need to retrieve and delete a specific row by any one of the four fields. This functionality can be archived in MySQL with insert, update &amp; delete queries. I need your Suggestion/help to archive the same in redis also.</p>
  
  <p>I've chosen hash method to store data in redis and as per my learning knowledge used the hash functions bellow.</p>
  
  <p>Syntax used : <code>$redis-&gt;hset("$Index", "$Field", "$Value");</code></p>
  
  <p>Data stored in redis :</p>
  
  <pre><code>$redis-&gt;hset("users", "1_name", "V.Rajesh");
  $redis-&gt;hset("users", "1_place", "Ponneri");
  $redis-&gt;hset("users", "1_email", "rajesh1991f@gmail.com");
  $redis-&gt;hset("users", "1_fr_email", "mailtodillibabu@gmail.com");
  
  $redis-&gt;hset("users", "2_name", "Mani");
  $redis-&gt;hset("users", "2_place", "Ayyaneri");
  $redis-&gt;hset("users", "2_email", "mani@gmail.com");
  $redis-&gt;hset("users", "2_fr_email", "mailtodillibabu@gmail.com");
  </code></pre>
  
  <p>Retrieved single data from redis :(By index and field name)<code>
  $redis-&gt;hget("users", "1_name");</code></p>
  
  <p>But, I want to get name by email:'rajesh1991f@gmail.com'. Please update me regarding this.</p>
  
  <p>Thanks &amp; Regards,</p>
  
  <p>-Dillibabu K</p>