title: How to get first key with special value in redis?
body: <p>I have a key value storage on redis with string 5 character key and a value of 0 or 1, I use redis template for set data on redis. now I want to get first key with value of 0, is that possible?</p>
  
  <pre><code>private StringRedisTemplate template;
  
  @Autowired
  public CodeBuilderRepository(StringRedisTemplate template) {
      this.template = template;
  }
  
  public void insertCode(String code) {
      template.opsForValue().set(code, "0");
  }
  </code></pre>