title: How to get keys from the value in redis
body: <p>I have checked following, but didn't work.</p>
  
  <p><a href="https://redis.io/commands/keys" rel="nofollow noreferrer">https://redis.io/commands/keys</a></p>
  
  <blockquote>
    <p><strong>KEYS Room:*</strong></p>
    
    <p>1) "Room:120"</p>
    
    <p>2) "Room:121"</p>
    
    <p>3) "Room:122"</p>
  </blockquote>
  
  <p>Following is the redis key/values (HMSET)</p>
  
  <p><strong>Room:120</strong> [<strong>SocketId</strong>:mOQDJusPjDTBN5L-AAAC,<strong>TimeStamp</strong>:10-10-2017 12:10:00 AM]</p>
  
  <p><strong>Room:121</strong> ....</p>
  
  <p><strong>Room:122</strong> ....</p>
  
  <p>...</p>
  
  <blockquote>
    <p>Need to search as Room:* SocketId:mOQDJusPjDTBN5L-AAAC</p>
  </blockquote>
  
  <p>How can I search for SocketId in the collection ?</p>
  
  <p><strong>Need to search with:</strong></p>
  
  <blockquote>
    <p><em>mOQDJusPjDTBN5L-AAAC</em></p>
  </blockquote>