简体   繁体   English

找不到MemcachePool

[英]MemcachePool not found

I am trying to use MemcachePool in my code, it reports the following error in PhP: 我试图在我的代码中使用MemcachePool,它在PhP中报告以下错误:

PHP Fatal error: Class 'MemcachePool' not found in test.php PHP致命错误:在test.php中找不到类'MemcachePool'

Here is the code snippet: 这是代码片段:

$this->mMemcached = new MemcachePool();
$this->mMemcached->addServer(...)

i never heard of MemcachePool - maybe you just wanted to use Memcache (thats where addServer() can be found)? 我从来没有听说过MemcachePool - 也许你只是想使用Memcache可以找到addServer() )? in that case, just change your code to: 在这种情况下,只需将您的代码更改为:

$this->mMemcached = new Memcache();
$this->mMemcached->addServer(...);

if this isn't what you're looking for, MemcachePool has to be a third party extension that hasn't been installed or a custom (wrapper)-class wich you forgot to include. 如果这不是您正在寻找的, MemcachePool必须是尚未安装的第三方扩展或您忘记包含的自定义(包装)类。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM