Memcached::getResultCode

(PECL memcached >= 0.1.0)

Memcached::getResultCode锟斤拷锟斤拷锟斤拷锟揭伙拷尾锟斤拷锟斤拷慕锟斤拷锟斤拷锟斤拷

说锟斤拷

public Memcached::getResultCode ( void ) : int

Memcached::getResultCode()锟斤拷锟斤拷Memcached::RES_*系锟叫筹拷锟斤拷锟叫碉拷一锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟揭伙拷锟街达拷锟組emcached锟斤拷锟斤拷锟侥斤拷锟斤拷锟�

锟斤拷锟斤拷

锟剿猴拷锟斤拷没锟叫诧拷锟斤拷锟斤拷

锟斤拷锟斤拷值

锟斤拷锟揭伙拷锟組emcached锟斤拷锟斤拷锟侥斤拷锟斤拷锟斤拷搿�

锟斤拷锟斤拷

Example #1 Memcached::getResultCode() 示锟斤拷

<?php
$m 
= new Memcached();
$m->addServer('localhost'11211);

$m->add('foo''bar');
if (
$m->getResultCode() == Memcached::RES_NOTSTORED) {
    
/* ... */
}
?>