What would be the best way to use a Redis DB within a C++ program?
Another C++ client can be found here: https://github.com/luca3m/redis3m
It's a wrapper of hiredis, with nice C++ classes, an high availability connection pooling and a set of patterns already implemented and ready to use.
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
https://github.com/petrohi/hiredispp
Also check out hiredispp. It is far from complete, but very simplistic implementation that wraps around C based hiredis. Hiredis takes care of low level protocol and networking stuff while hiredispp wrappers just make it C++ friendly.