title: iterating over Redis hash keys with a wild card search
body: <p>I have redis keys and the values of those keys as hash set(key,value pairs).  I am using python to retreive the key values.
  ex:</p>
  
  <pre><code>top_link:files
      key: file_path/foldername1
      value: filename1
  
      key: file_path/foldername2
      value: filename2
  
      key: test_path/foldername3
      value: filename3
  </code></pre>
  
  <p>I want to find out all hash set keys whose key name starts with "file_path"</p>
  
  <p>I tried </p>
  
  <pre><code>all_keys = redis_connection.hscan_iter("top_link:files")
  for key in all_keys:
    if key.startswith("file_path"):
      redis_connection.hget("top_link:files",key)
  </code></pre>
  
  <p>is there a better way to find all the hash keys that start with "file_path".  SCAN seems to do what i am trying to achieve.  But all the examples shows scan on top level keys (top_link:files) but not on hash keys.  Any suggestions?
  Thank you.</p>