title: Difference between Redis GET/SET and hash tables
body: <p>I'm new to Redis and databases in general. I'm confused about when I should use the GET/SET commands and when I should create a hash table and use the HGET/HSET commands.</p>
  <p>Let's say I want to keep track of the prices of various products in a shop.</p>
  <p>Using GET and SET:</p>
  <pre><code>SET pencil 3
  SET eraser 4
  SET calculator 60
  
  GET pencil
  GET eraser
  GET calculator
  </code></pre>
  <p>Using HGET and HSET:</p>
  <pre><code>HSET mystore pencil 3
  HSET mystore eraser 4
  HSET mystore calculator 60
  
  HGET mystore pencil
  HGET mystore eraser
  HGET mystore calculator
  </code></pre>
  <p>For this shop example, which method is preferred? What's the difference between using the GET/SET commands and using the HGET/HSET commands? What are some of their use cases?</p>
  <p>Thanks</p>