memcached functions for mysql, UDF(兼容libmemcached 1.0.x)

阅读更多

memcached functions for mysql官网发布的1.1版本是09年的,只兼容libmemcached0.34版本。也不知道这东西还有没有人在更新。

 

于是看了下libmemcached 1.0.x的api和源码,修改了下memcached functions for mysql的源码,于是就可以用了。。。

 

 

ChangeLog

 

 

1.2 Tuesday, April 17,2012 18:00:00 EST 2012

 

 * Added support of libmemcached above version 1.0

 

 * fixed issue of libtool compling error 

 

 * Update memc_stats function to take 0 or 1 argument

 

 * Added memc_servers_reset function

 

 * Added memc_increment_by_key function

 

 * Added memc_decrement_by_key function 

 

 * Added memc_flush function

 

 * Added memc_flush_buffers function 

 

 * Removed memc_servers_behavior_set function 

 

 * Removed memc_servers_behavior_get function 

 

 * Fixed bugs of memc_behavior_set and memc_behavior_get

 

 * Add behaviors as follows:

 

  MEMCACHED_BEHAVIOR_NOREPLY

 

  MEMCACHED_BEHAVIOR_TCP_KEEPALIVE

 

  MEMCACHED_BEHAVIOR_TCP_KEEPIDLE

 

  MEMCACHED_BEHAVIOR_REMOVE_FAILED_SERVERS

 

  MEMCACHED_BEHAVIOR_HASH_WITH_PREFIX_KEY

 

  MEMCACHED_BEHAVIOR_IO_KEY_PREFETCH

 

  MEMCACHED_BEHAVIOR_RANDOMIZE_REPLICA_READ

 

  MEMCACHED_BEHAVIOR_NUMBER_OF_REPLICAS

 

  MEMCACHED_BEHAVIOR_DEAD_TIMEOUT

 

 

 

转载请注明源 http://asyty.iteye.com/blog/1497468

 

  • memcached_functions_mysql-asyty.tar.gz (305.2 KB)
  • 下载次数: 91

你可能感兴趣的:(UDF,memcached,libmemcached,mysql,functions)