title: How do I know the data type of the value of a given key?
body: <p>I can't seem to find useful information about Redis commands. I want to know the data type of the value of a given key. For instance to list all the keys of my database I run the following command: </p>
  
  <pre><code> keys *
  </code></pre>
  
  <p>In my setup, I get the following result:</p>
  
  <pre><code> 1) "username:testuser:uid"
   2) "uid:1:first"
   3) "uid:1:email"
   4) "uid:1:hash"
   5) "global:next_uid"
   6) "members:email"
   7) "uid:1:username"
   8) "uid:1:last"
   9) "uid:1:salt"
   10) "uid:1:access"
   11) "uid:1:company"
   12) "email:testuser@gmail.com:uid"
   13) "uid:1:phone_number"
  </code></pre>
  
  <p>How do I know what data type the key <code>members:email</code> contains? I tried to run <code>get members:email</code> but and I get the error <code>(error) ERR Operation against a key holding the wrong kind of value</code></p>
  
  <p>Any thoughts?</p>