addServer('不存在的别名', 11211);$m->set('int', 99);$m->set('string', 'a simple string');$m->set('array', array(11, 12));/* 'object'这个key将在5分钟后过期 */$m->set('object', new stdclass, time() + 300);var_dump($m->get('int'));var_dump($m->get('string'));var_dump($m->get('array'));var_dump($m->get('object'));?>
found that the memcached connected a nonexistent alias, set, blocked, and then 502, what error, the exception is not given.
Checked the manual, and did not find how to detect the state of the memcached, how did you do?
Reply content:
addServer('不存在的别名', 11211);$m->set('int', 99);$m->set('string', 'a simple string');$m->set('array', array(11, 12));/* 'object'这个key将在5分钟后过期 */$m->set('object', new stdclass, time() + 300);var_dump($m->get('int'));var_dump($m->get('string'));var_dump($m->get('array'));var_dump($m->get('object'));?>
found that the memcached connected a nonexistent alias, set, blocked, and then 502, what error, the exception is not given.
Checked the manual, and did not find how to detect the state of the memcached, how did you do?
Check server status with $m->getstats () after Addserver
There is an open source memadmin, which is a web-based memcached management and monitoring tool developed using PHP.