Memcached :: getStats无法与Couchbase一起使用 [英] Memcached::getStats not working with Couchbase

查看:108
本文介绍了Memcached :: getStats无法与Couchbase一起使用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近设置了一台运行Apache,PHP和Couchbase的服务器.但是,我在测试Couchbase安装时遇到了问题.过去,我测试一切正常的方法是使用一个简单的脚本在Couchbase上运行getStats:

I recently set up a server that I'm running Apache, PHP, and Couchbase on. However, I've been having problems testing the Couchbase installation. In the past, the way I would test that everything is working is with a simple script to run getStats on Couchbase:

<?php
  $memcache = new Memcached();
  $memcache->addServer('127.0.0.1', 11211);
  $result = $memcache->getStats();
  print_r($result);
?>

此函数用于返回正常的统计信息数组.但是,最近它什么也没有返回,并且在我的任何日志中都没有产生任何错误.同时,我仍然可以获取/设置key-> values并实际使用Couchbase满足我的需求.为了使getStats再次工作,PHP,Memcached模块或其他地方是否发生了更改?或者我缺少什么?

This used to return the normal array of statistics. Lately, though, it doesn't return anything and there aren't any errors being produced in any of my logs. At the same time, I can still get/set key->values and actually use Couchbase to my hearts content. Did something change in PHP, the Memcached module, or somewhere else or what am I missing in order to have getStats work again?

我正在跑步: -Pecl Memcached 2.0.1 -PHP 5.3.10 -Couchbase 1.8.0

I'm running: - Pecl Memcached 2.0.1 - PHP 5.3.10 - Couchbase 1.8.0

谢谢!

推荐答案

听起来像是moxi问题.您可能需要终止moxi进程,该进程会自动重生.如果它随后开始工作,则可能是一个moxi问题.最好有一个错误报告.

Sounds like an issue with moxi. You may want to kill the moxi process, which will automatically respawn. If it then starts working then it's probably a moxi issue. It'd be good to have a bug report.

请注意,您可以使用官方Couchbase PHP客户端来解决问题.这样做的目的是使API与PECL memcached非常接近.

Note that you can go around moxi with the official Couchbase PHP client. That is designed to be pretty close API wise to PECL memcached.

完全公开:我为Couchbase工作.

Full disclosure: I work for Couchbase.

这篇关于Memcached :: getStats无法与Couchbase一起使用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆