# redis_client **Repository Path**: yiliangwu880/redis_client ## Basic Information - **Project Name**: redis_client - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2022-03-02 - **Last Updated**: 2022-04-08 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README 简介: 开源hiredis基础上封装成C++接口。简单易用安全。 不推荐使用了,参考 下面 项目吧,异步回调用函数对象,使用更简洁 ## asio_redis_client 项目名称:[asio_redis_client](https://github.com/topcpporg/asio_redis_client) 状态:已发布 需要的C++版本:C++11 项目简介: an easy to use, thread-safe, cross-platform async redis client implemented in c++11. The best c++ redis client! code first: ```c++ redis_client->set("hello", "world", [](RedisValue value) { if(value.isError()){ std::cout<<"error:"<get("hello", [](RedisValue value) { std::cout << "get: " << value.toString() << '\n'; }); 编译: 整个文件夹放到linux目录,安装cmake gcc git等。 去目录 external/hiredis-0.14.0/执行make生成libhiredis.a 主目录执行:sh clearBuild.sh 完成编译 如果需要测试,去目录 redis_client\samples\external\libevent_cpp\ 编译出库 目录结构: