Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to build on Windows #17

Open
Think7 opened this issue Aug 21, 2016 · 5 comments
Open

How to build on Windows #17

Think7 opened this issue Aug 21, 2016 · 5 comments

Comments

@Think7
Copy link

Think7 commented Aug 21, 2016

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!

@0xsky
Copy link
Owner

0xsky commented Aug 28, 2016

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

@0xsky
Copy link
Owner

0xsky commented Oct 13, 2016

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

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

@skyformat99
Copy link

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

@0xsky
Copy link
Owner

0xsky commented Jul 10, 2017

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

@skyformat99
Copy link

好的,谢谢回答。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants