hiredispool:为hiredis提供连接池和自动重新连接。 它也极简且易于定制-源码

上传者: 42134051 | 上传时间: 2021-09-02 14:33:55 | 文件大小: 140KB | 文件类型: ZIP
出租出租 该库提供hireddis的连接池和自动重新连接。 它也是简约的,易于定制。 该代码已在多线程应用程序中经过全面测试,并在生产环境中使用了很长时间。 它被证明是线程安全的,并且没有内存泄漏。 特征 用纯C实现的连接池 自动重新连接并在首次出现故障时立即重试 全面的日志记录以进行诊断 除hiredis外,没有第三方依赖性 具有自动内存管理功能的线程安全C ++包装器 [高级]可以配置多个服务器端点,并具有自动负载平衡和故障转移功能,以支持诸如高可用性redis-cluster和redis-proxy中间件之类的方案。 [实验]类似于Jedis的C ++包装器 [实验性]动态重新配置 局限性 要支持自动重新连接和重试,必须使用hiredis同步API的包装器 如何使用 要构建它,请克隆仓库并make 。 请查看test_*.cpp以获取示例。 编译 git clone < hired

文件下载

资源详情

[{"title":"( 71 个子文件 140KB ) hiredispool:为hiredis提供连接池和自动重新连接。 它也极简且易于定制-源码","children":[{"title":"hiredispool-master","children":[{"title":"hiredispool.c <span style='color:#111;'> 15.33KB </span>","children":null,"spread":false},{"title":"log.h <span style='color:#111;'> 1.93KB </span>","children":null,"spread":false},{"title":"experimental","children":[{"title":"redisclient","children":[{"title":"hiredispool.c <span style='color:#111;'> 18.17KB </span>","children":null,"spread":false},{"title":"test_RedisClientYaf.cpp <span style='color:#111;'> 24.10KB </span>","children":null,"spread":false},{"title":"hiredispool.h <span style='color:#111;'> 1.86KB </span>","children":null,"spread":false},{"title":"RedisClientYaf.cpp <span style='color:#111;'> 40.97KB </span>","children":null,"spread":false},{"title":"LICENSE <span style='color:#111;'> 11.09KB </span>","children":null,"spread":false},{"title":"README.md <span style='color:#111;'> 100B </span>","children":null,"spread":false},{"title":"Makefile <span style='color:#111;'> 2.25KB </span>","children":null,"spread":false},{"title":"RedisClient.h <span style='color:#111;'> 4.61KB </span>","children":null,"spread":false},{"title":"test_hiredispool.cpp <span style='color:#111;'> 1.24KB </span>","children":null,"spread":false},{"title":"test_RedisClient2.cpp <span style='color:#111;'> 1.91KB </span>","children":null,"spread":false},{"title":"RedisClientYaf.h <span style='color:#111;'> 10.36KB </span>","children":null,"spread":false},{"title":"test_RedisClient.cpp <span style='color:#111;'> 1.77KB </span>","children":null,"spread":false},{"title":".gitignore <span style='color:#111;'> 29B </span>","children":null,"spread":false},{"title":"RedisClient.cpp <span style='color:#111;'> 2.13KB </span>","children":null,"spread":false},{"title":"hiredis","children":[{"title":"net.h <span style='color:#111;'> 2.51KB </span>","children":null,"spread":false},{"title":"sdsalloc.h <span style='color:#111;'> 2.04KB </span>","children":null,"spread":false},{"title":"hiredis.h <span style='color:#111;'> 9.36KB </span>","children":null,"spread":false},{"title":"sds.c <span style='color:#111;'> 38.88KB </span>","children":null,"spread":false},{"title":"COPYING <span style='color:#111;'> 1.55KB </span>","children":null,"spread":false},{"title":"test.c <span style='color:#111;'> 28.20KB </span>","children":null,"spread":false},{"title":"sds.h <span style='color:#111;'> 8.74KB </span>","children":null,"spread":false},{"title":"read.c <span style='color:#111;'> 14.37KB </span>","children":null,"spread":false},{"title":"adapters","children":[{"title":"macosx.h <span style='color:#111;'> 3.77KB </span>","children":null,"spread":false},{"title":"ae.h <span style='color:#111;'> 4.12KB </span>","children":null,"spread":false},{"title":"libevent.h <span style='color:#111;'> 3.90KB </span>","children":null,"spread":false},{"title":"glib.h <span style='color:#111;'> 3.72KB </span>","children":null,"spread":false},{"title":"ivykis.h <span style='color:#111;'> 2.22KB </span>","children":null,"spread":false},{"title":"qt.h <span style='color:#111;'> 4.13KB </span>","children":null,"spread":false},{"title":"libuv.h <span style='color:#111;'> 2.51KB </span>","children":null,"spread":false},{"title":"libev.h <span style='color:#111;'> 4.48KB </span>","children":null,"spread":false}],"spread":false},{"title":"net.c <span style='color:#111;'> 14.70KB </span>","children":null,"spread":false},{"title":"win32.h <span style='color:#111;'> 744B </span>","children":null,"spread":false},{"title":"examples","children":[{"title":"example-libev.c <span style='color:#111;'> 1.37KB </span>","children":null,"spread":false},{"title":"example-ivykis.c <span style='color:#111;'> 1.38KB </span>","children":null,"spread":false},{"title":"example-libuv.c <span style='color:#111;'> 1.41KB </span>","children":null,"spread":false},{"title":"example.c <span style='color:#111;'> 2.18KB </span>","children":null,"spread":false},{"title":"example-qt.cpp <span style='color:#111;'> 1.02KB </span>","children":null,"spread":false},{"title":"example-qt.h <span style='color:#111;'> 620B </span>","children":null,"spread":false},{"title":"example-macosx.c <span style='color:#111;'> 1.62KB </span>","children":null,"spread":false},{"title":"example-ae.c <span style='color:#111;'> 1.55KB </span>","children":null,"spread":false},{"title":"example-glib.c <span style='color:#111;'> 1.59KB </span>","children":null,"spread":false},{"title":"example-libevent.c <span style='color:#111;'> 1.42KB </span>","children":null,"spread":false}],"spread":false},{"title":"hiredis.c <span style='color:#111;'> 28.67KB </span>","children":null,"spread":false},{"title":".travis.yml <span style='color:#111;'> 897B </span>","children":null,"spread":false},{"title":"fmacros.h <span style='color:#111;'> 404B </span>","children":null,"spread":false},{"title":"README.md <span style='color:#111;'> 17.84KB </span>","children":null,"spread":false},{"title":"Makefile <span style='color:#111;'> 7.68KB </span>","children":null,"spread":false},{"title":"dict.h <span style='color:#111;'> 4.58KB </span>","children":null,"spread":false},{"title":"async.h <span style='color:#111;'> 5.17KB </span>","children":null,"spread":false},{"title":"read.h <span style='color:#111;'> 4.25KB </span>","children":null,"spread":false},{"title":"appveyor.yml <span style='color:#111;'> 1.48KB </span>","children":null,"spread":false},{"title":"dict.c <span style='color:#111;'> 10.30KB </span>","children":null,"spread":false},{"title":".gitignore <span style='color:#111;'> 72B </span>","children":null,"spread":false},{"title":"CHANGELOG.md <span style='color:#111;'> 4.79KB </span>","children":null,"spread":false},{"title":"async.c <span style='color:#111;'> 22.65KB </span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":true},{"title":".gitmodules <span style='color:#111;'> 98B </span>","children":null,"spread":false},{"title":"hiredispool.h <span style='color:#111;'> 1.66KB </span>","children":null,"spread":false},{"title":"Dockerfile <span style='color:#111;'> 574B </span>","children":null,"spread":false},{"title":"LICENSE <span style='color:#111;'> 11.09KB </span>","children":null,"spread":false},{"title":"test_log.c <span style='color:#111;'> 406B </span>","children":null,"spread":false},{"title":"README.md <span style='color:#111;'> 1.71KB </span>","children":null,"spread":false},{"title":"Makefile <span style='color:#111;'> 2.52KB </span>","children":null,"spread":false},{"title":"RedisClient.h <span style='color:#111;'> 3.65KB </span>","children":null,"spread":false},{"title":"test_hiredispool.cpp <span style='color:#111;'> 1.27KB </span>","children":null,"spread":false},{"title":"test_RedisClient2.cpp <span style='color:#111;'> 1.08KB </span>","children":null,"spread":false},{"title":"test_RedisClient.cpp <span style='color:#111;'> 1.77KB </span>","children":null,"spread":false},{"title":".gitignore <span style='color:#111;'> 46B </span>","children":null,"spread":false},{"title":"log.c <span style='color:#111;'> 8.51KB </span>","children":null,"spread":false},{"title":"RedisClient.cpp <span style='color:#111;'> 688B </span>","children":null,"spread":false},{"title":"hiredis","children":null,"spread":false}],"spread":false}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明