mirror of
https://github.com/vanhauser-thc/thc-hydra.git
synced 2025-08-22 06:13:55 -07:00
删除无用文件
This commit is contained in:
parent
d9990f8654
commit
c34d26edd1
2 changed files with 0 additions and 20 deletions
Binary file not shown.
|
@ -1,20 +0,0 @@
|
||||||
#include <stdio.h>
|
|
||||||
#include "hiredis.h"
|
|
||||||
int main()
|
|
||||||
{
|
|
||||||
redisContext *conn = redisConnect("127.0.0.1",6379);
|
|
||||||
if(conn != NULL && conn->err)
|
|
||||||
{
|
|
||||||
printf("connection error: %s\n",conn->errstr);
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
redisReply *reply = (redisReply*)redisCommand(conn,"set foo 1234");
|
|
||||||
freeReplyObject(reply);
|
|
||||||
|
|
||||||
reply = redisCommand(conn,"get foo");
|
|
||||||
printf("%s\n",reply->str);
|
|
||||||
freeReplyObject(reply);
|
|
||||||
|
|
||||||
redisFree(conn);
|
|
||||||
return 0;
|
|
||||||
}
|
|
Loading…
Add table
Add a link
Reference in a new issue