views:

444

answers:

3

What would be the best way to use a Redis DB within a C++ program?

+3  A: 

Using a C bindings library? There doesn't seem to be a C++ wrapper available anywhere.

Kornel Kisielewicz
A caveat is that the project page says it's alpha, and not all commands are supported.
Matthew Flaschen
Well, it's open source, so you can always contribute :)
LiraNuna
+1  A: 

http://github.com/fictorial/redis-cplusplus-client

This C++ client library is not maintained however as few people actually use C++ to communicate with Redis.

z8000
+2  A: 

I have forked the fictorial redis-cplusplus-client, made it compatible to redis-server v2.0, added missing api calls and implemented consistent hashing. There is also an early state of high level classes that will be useable like stl types in the near future (shared_string, shared_int, shared_set, ...). Nothing is production ready yet but the provided tests are succesfully running :-)

http://github.com/mrpi/redis-cplusplus-client

Ludger Sprenker