你好,游客 登录 注册 搜索
背景:
阅读新闻

libmemcached 1.0.18 发布,memcached 开发包

[日期:2014-02-10] 来源:oschina.net  作者:Linux [字体:大 中 小]

libmemcached 1.0.18 发布,此版本的 MEMCACHED_BEHAVIOR_RETRY_TIMEOUT 可以被设置为 0 ,还包括一些 bug 修复。

libmemcached是C客户端到memcached服 务器的接口库。具有低内存占用率、线程安全、并提供对memcached功能的全面支持。它还采用多种命令行工具,包括: memcat、memflush、memrm、memstat、memslap 。

示例代码:

const char *config_string= "--SERVER=host10.example.com --SERVER=host11.example.com --SERVER=host10.example.com";

memcached_pool_st* pool= memcached_pool(config_string, strlen(config_string));

memcached_return_t rc;

memcached_st *memc= memcached_pool_pop(pool, false, &rc);

.... do work

/*
  Release the memc_ptr that was pulled from the pool
*/
memcached_pool_push(pool, memc);

/*
  Destroy the pool.
*/
memcached_pool_destroy(pool);

libmemcached 的详细介绍:请点这里
libmemcached 的下载地址:请点这里

linux
相关资讯       libmemcached 
本文评论   查看全部评论 (0)
表情: 表情 姓名: 字数

       

评论声明
  • 尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
  • 本站管理人员有权保留或删除其管辖留言中的任意内容
  • 本站有权在网站内转载或引用您的评论
  • 参与本评论即表明您已经阅读并接受上述条款