Memcached::getResultCode
  Return the result code of the last operation
  
 
  Description
  
   public int Memcached::getResultCode()
  
  
 
  Parameters
  This function has no parameters.
  
 
  Return Values
  
   Result code of the last Memcached operation.
  
  
 
  Examples
  
   
    Example #1 Memcached::getResultCode example
    
<?php
$m = new Memcached();
$m->addServer('localhost', 11211);
$m->add('foo', 'bar');
if ($m->getResultCode() == Memcached::RES_NOTSTORED) {
    /* ... */
}
?>