,所以我有一个问题有很大关系:question with memcached_get() in libmemcached 它似乎并不明显,或者可以从我的文档。是否有可能在不知道数据长度的情况下获取基于密钥的值?我计划让多个线程更改键的值,因此不能保存前一个值的长度。我试着将* value_length设置为NULL,0或者没有任何效果的任意高数字(例如程序崩溃)。我希望这可以通过以null结尾的字
试图按照这些指示:当我运行 (http://dev.mysql.com/doc/refman/5.1/en/ha-memcached-interfaces-mysqludf.html) shell> tar zxf memcached_functions_mysql-1.1.tar.gz
shell> cd memcached_functions_mysql-1.1
shell> # If m
按照this post。 我能./configure安装libmemcache-devel的经过,但现在当我移动到下一个设置和运行sudo make我得到如下: Making all in src
make[1]: Entering directory `/root/tmp/memcached_functions_mysql-1.1/src'
make all-am
make[2]: Ent
的代码非常简单 $mem = $this->memcache->get("memche_".$_SESSION['userid']."_page_".$page);
if(empty($mem)){
// to make another query and save the data to memcache
}
else {
// to get it from memcache
}