资源简介
网际风 http://www.nezip.net 崇尚简洁实用。示例将Hiredis的操作封装为两个导出函数 Set 与 Get,
支持 Unicode 编码方式,支持二进制读写,有断线重连功能,可以使用静态库或动态库。
唯一实时Hiredis.dll 动态库方式。示例在 Win 10 VS2015 环境下编译通过。
代码片段和文件信息
// Client.cpp : 定义控制台应用程序的入口点。
//
#include “stdafx.h“
#include
#include “Client.h“
int main(void)
{
CRedisDll redis;
struct testStruct
{
int i = 10;
int j = 20;
char k[32] = “abcd“;
};
testStruct test;
redisReply* reply = nullptr;
while (!reply)
{
redis.Set(“foo“ “hello zoujiaqing!“ -1 3);
redis.Set(“test:abcd“ &test sizeof test 300);
reply = redis.Get(“test:abcd“ 300);
Sleep(10);
}
testStruct* pTest = (testStruct*)reply->str;
getchar();
return 0;
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 244 2017-04-02 17:58 使用说明.txt
文件 551 2017-04-02 17:35 Client\Client.cpp
文件 2127 2017-04-02 17:26 Client\Client.h
文件 8207 2017-04-02 13:02 Client\Client.vcxproj
文件 1509 2017-04-02 11:16 Client\Client.vcxproj.filters
文件 165 2017-04-02 08:33 Client\Client.vcxproj.user
文件 1503 2017-04-01 21:05 Client\ReadMe.txt
文件 210 2017-04-01 21:05 Client\stdafx.cpp
文件 234 2017-04-01 21:05 Client\stdafx.h
文件 240 2017-04-01 21:05 Client\targetver.h
文件 57 2013-09-13 15:01 hiredis\.gitignore
文件 4346 2016-05-17 21:20 hiredis\adapters\ae.h
文件 4734 2016-05-17 21:20 hiredis\adapters\libev.h
文件 4088 2016-05-17 21:20 hiredis\adapters\libevent.h
文件 22083 2017-04-02 07:45 hiredis\async.c
文件 5203 2016-05-17 21:20 hiredis\async.h
文件 519 2013-09-13 15:01 hiredis\CHANGELOG.md
文件 1588 2013-09-13 15:01 hiredis\COPYING
文件 12614 2017-04-02 07:45 hiredis\dict.c
文件 4982 2016-05-17 21:20 hiredis\dict.h
文件 1572 2016-05-17 21:19 hiredis\example-ae.c
文件 1455 2016-05-17 21:19 hiredis\example-libev.c
文件 1506 2016-05-17 21:19 hiredis\example-libevent.c
文件 1944 2016-05-17 21:19 hiredis\example.c
文件 319 2016-05-17 21:20 hiredis\fmacros.h
文件 35701 2017-04-02 15:55 hiredis\hiredis.c
文件 9735 2017-04-02 07:45 hiredis\hiredis.h
文件 4493 2013-09-13 15:01 hiredis\Makefile
文件 14891 2017-04-02 07:45 hiredis\net.c
文件 2376 2016-05-17 21:20 hiredis\net.h
............此处省略111个文件信息
相关资源
- OSEKVCX汽车电子嵌入式软件编程技术
- windows文件夹监控(c++源码)
- zprotect 1.6 脱壳工具()
- windows系统编程源代码第四版
- DDC/CI Tool
- Programming Windows 程式开发设计指南(
- Windows核心编程源码
- windows 串口升级工具(c++源码)
- ntmedsys.sys(c++源码)
- tftpd32 源代码VC
- Windows Sockets 规范及应用-Windows网络编
- Windows Sockets 编程及UR机器人通信数据
- VC6桌面录像
- VC++图片控件(Picture Control)显示资源
- windows下定时关闭进程(应用程序)
- C++实战源码-播放VCD
- C++实战源码-在VC中如何进行远程调试
- C++ 获得Windows和System的路径
- C++ 隐藏和显示Windows任务栏
- VC _GDI 编程详解.pdf
- vc++车牌识别源程序
- VC++截屏,并截屏图像旋转(简单)
- 在VC中调用中文Lua的
- VC 多线程工具开源代码
- C++ MFC调用Javascrip函数
- vc++的餐厅前后台点餐软件
- vc客户端通过HTTP的POST方式传送文件到
- Windows直接写屏源码
- C++ 如何获取Windows 2000系统启动时间
- windows 线程池(ThreadPoolMain.cpp)
评论
共有 条评论