简体   繁体   中英

MemcachePool not found

I am trying to use MemcachePool in my code, it reports the following error in PhP:

PHP Fatal error: Class 'MemcachePool' not found in test.php

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)? 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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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