[英]MemcachePool not found
我試圖在我的代碼中使用MemcachePool,它在PhP中報告以下錯誤:
PHP致命錯誤:在test.php中找不到類'MemcachePool'
這是代碼片段:
$this->mMemcached = new MemcachePool();
$this->mMemcached->addServer(...)
我從來沒有聽說過MemcachePool
- 也許你只是想使用Memcache ( 那可以找到addServer() )? 在這種情況下,只需將您的代碼更改為:
$this->mMemcached = new Memcache();
$this->mMemcached->addServer(...);
如果這不是您正在尋找的, MemcachePool
必須是尚未安裝的第三方擴展或您忘記包含的自定義(包裝)類。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.