How to use Redis within a C++ program?

前端 未结 9 1353
被撕碎了的回忆
被撕碎了的回忆 2020-12-15 06:48

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

相关标签:
9条回答
  • 2020-12-15 07:17

    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.

    0 讨论(0)
  • 2020-12-15 07:21

    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

    0 讨论(0)
  • 2020-12-15 07:27

    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.

    0 讨论(0)
提交回复
热议问题