mirror of https://github.com/IoTcat/img-api.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
247 B
19 lines
247 B
4 years ago
|
<?php
|
||
|
|
||
|
|
||
|
$redis = new redis();
|
||
|
$redis->connect('redis',6379);
|
||
|
|
||
|
$keys = $redis->keys('api/img/_num/*');
|
||
|
|
||
|
|
||
|
$res = array();
|
||
|
foreach($keys as $key){
|
||
|
$res[$key] = $redis->get($key);
|
||
|
}
|
||
|
|
||
|
arsort($res);
|
||
|
|
||
|
foreach($res as $a => $b)
|
||
|
echo "$a => $b <br>";
|