update
This commit is contained in:
parent
772c971ad0
commit
f270bbbfdc
@ -89,16 +89,17 @@ public class test {
|
||||
} else {
|
||||
Jedis jedis = RedisUtlis.getRedis();
|
||||
Set<String> keys = jedis.keys("*");
|
||||
String data = "";
|
||||
String data = "<html><body><div>";
|
||||
for (String key : keys) {
|
||||
if (type.equals("del")) {
|
||||
jedis.del(key);
|
||||
}else {
|
||||
if (key.startsWith("ip_")) {
|
||||
data += "ip=" + key.replace("ip_", "") + " num=" + jedis.get(key) + "\n";
|
||||
data += "ip=" + key.replace("ip_", "") + " num=" + jedis.get(key) + "<br/>";
|
||||
}
|
||||
}
|
||||
}
|
||||
data+="</div></body></html>";
|
||||
jedis.close();
|
||||
return data;
|
||||
}
|
||||
|
Reference in New Issue
Block a user