array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'de', ), 'this' => array ( 0 => 'memcached.getresultmessage.php', 1 => 'Memcached::getResultMessage', 2 => 'Return the message describing the result of the last operation', ), 'up' => array ( 0 => 'class.memcached.php', 1 => 'Memcached', ), 'prev' => array ( 0 => 'memcached.getresultcode.php', 1 => 'Memcached::getResultCode', ), 'next' => array ( 0 => 'memcached.getserverbykey.php', 1 => 'Memcached::getServerByKey', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/memcached/memcached/getresultmessage.xml', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?>

Memcached::getResultMessage

(PECL memcached >= 1.0.0)

Memcached::getResultMessageReturn the message describing the result of the last operation

Beschreibung

public Memcached::getResultMessage(): string

Memcached::getResultMessage() returns a string that describes the result code of the last executed Memcached method.

Parameter-Liste

Diese Funktion besitzt keine Parameter.

Rückgabewerte

Message describing the result of the last Memcached operation.

Beispiele

Beispiel #1 Memcached::getResultMessage() example

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

$m->add('foo', 'bar'); // first time should succeed
$m->add('foo', 'bar');
echo
$m->getResultMessage(),"\n";
?>

Das oben gezeigte Beispiel erzeugt folgende Ausgabe:

NOT STORED