title: find redis key by value zset - laravel
body: <p>I have zset in redis like below.</p>
  
  <pre><code>Type:zset
  TTL:does not expire [E]
  Encoding:ziplist
  
  
  
  Score                    Value
   1                     0358899056725255
  
  13                    {"voltage_level":"06","signal_strength":"02"}
  </code></pre>
  
  <p>I have one device with dynamic ip on each connection with unique value (0358899056725255 here). When ever the device restart, its ip will be changed as a result i need to make a new zset . I want to delete all old garbage ip for this particular value.</p>
  
  <p>What I treid</p>
  
  <pre><code>Redis::zadd($conn-&gt;remoteAddress, '01', $imei); //to add new ip
  //scan all ip and check one by one 
  @start loop
  $val=Redis::zrangebyscore($ip[$i], 01, 01);
  if($val=='0358899056725255')
    Redis::del($conn-&gt;remoteAddress);
  @end loop
  </code></pre>
  
  <p>I have like 10,000+ devices and I dont want to iterate, is there some easy solutions</p>