xredis
xredis copied to clipboard
How to build on Windows
Hello,
Would you be willing to explain how to build this on Windows using MSVC++ compiler? Also hiredis is listed as a dependancy but hiredis itself doesn't support windows. So i'm extra unsure of how to make this work.
Thanks for your time!
have a look at this : https://github.com/MSOpenTech/redis
有关在win下使用的问题,在这里总结一下:
- xredis依赖hiredis,因此需先要先在win下编译hiredis库, hiredis在win下编译使用,可以看下微软的:https://github.com/MSOpenTech/redis
- 编译好win下的hiredis后,就可以直接在C++里使用xredis了。
谢谢大牛牛。 不过,对这个怎么看?https://github.com/lordoffox/aredis 似乎一个头文件搞定。
怎么实现的其实不重要,实现简单的话,也可以看下 https://github.com/0xsky/xredis/blob/master/src/xRedisClusterClient.h 这个里面也实现了一个简单的client, xredis是对hiredis的封装,主要是为了C++使用方便.
好的,谢谢回答。