Ole*_*kin 12 php xampp memcached pecl
我似乎无法找到PHP 的Memcache D扩展.
有一些php_memcache.dll的汇编,但这不一样.
我缺少的主要是getMulti(),它在Memcache中不存在.
到目前为止我发现了这个,但是没有DLL:
正式 - 它不存在.虽然有几个人创建了自己的DLL.这是一个人创建了dll的博客:
http://trondn.blogspot.com/2010/07/libmemcached-on-win32.html
这是一个带源代码的存储库链接,因此您可以为memcached构建自己的DLL:
http://bazaar.launchpad.net/~trond-norbye/libmemcached/mingw32/files
我知道memcached有一些其他的功能,但它的界面几乎与memcache扩展的相同.您可以非常轻松地使用此类代码,在我的情况下,它可以很好地运行.如果您没有加载memcached,请创建此文件:
<?php
class Memcached {
const OPT_LIBKETAMA_COMPATIBLE = true;
const OPT_COMPRESSION = true;
const OPT_NO_BLOCK = true;
//if you code relies on any other constants define them to avoid
//undefined constant notice
//http://www.php.net/manual/en/memcached.constants.php
public $_instance;
public function __construct() {
$this->_instance = new Memcache;
}
public function __call($name, $args) {
return call_user_func_array(array($this->_instance, $name), $args);
}
public function setOption() {}
}
包括它或配置自动加载器来拾取它.当然,您需要一个正确配置的memcache实例和addServer调用,但如果代码库假设Memcached,则此类调用应该已经在代码中.我希望它可以帮助某人/