删除无用文件

This commit is contained in:
root 2018-04-03 07:23:06 -04:00
commit c34d26edd1
2 changed files with 0 additions and 20 deletions

Binary file not shown.

View file

@ -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;
}