xredis icon indicating copy to clipboard operation
xredis copied to clipboard

How to build on Windows

Open Think7 opened this issue 8 years ago • 5 comments

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!

Think7 avatar Aug 21 '16 12:08 Think7

have a look at this : https://github.com/MSOpenTech/redis

0xsky avatar Aug 28 '16 16:08 0xsky

有关在win下使用的问题,在这里总结一下:

  1. xredis依赖hiredis,因此需先要先在win下编译hiredis库, hiredis在win下编译使用,可以看下微软的:https://github.com/MSOpenTech/redis
  2. 编译好win下的hiredis后,就可以直接在C++里使用xredis了。

0xsky avatar Oct 13 '16 03:10 0xsky

谢谢大牛牛。 不过,对这个怎么看?https://github.com/lordoffox/aredis 似乎一个头文件搞定。

skyformat99 avatar Jul 10 '17 03:07 skyformat99

怎么实现的其实不重要,实现简单的话,也可以看下 https://github.com/0xsky/xredis/blob/master/src/xRedisClusterClient.h 这个里面也实现了一个简单的client, xredis是对hiredis的封装,主要是为了C++使用方便.

0xsky avatar Jul 10 '17 04:07 0xsky

好的,谢谢回答。

skyformat99 avatar Jul 10 '17 04:07 skyformat99