downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

Memcached::getServerByKey> <Memcached::getResultCode
[edit] Last updated: Fri, 25 May 2012

view this page in

Memcached::getResultMessage

(PECL memcached >= 1.0.0)

Memcached::getResultMessageRetourne un message décrivant le résultat de la dernière opération

Description

public string Memcached::getResultMessage ( void )

Memcached::getResultMessage() retourne une chaîne qui décrit le code résultat de la dernière méthode Memcached exécutée.

Liste de paramètres

Cette fonction ne contient aucun paramètre.

Valeurs de retour

Message décrivant le résultat de la dernière opération Memcached.

Exemples

Exemple #1 Exemple avec Memcached::getResultMessage()

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

$m->add('foo''bar'); // Succès la première fois
$m->add('foo''bar');
echo 
$m->getResultMessage(),"\n";
?>

L'exemple ci-dessus va afficher :

NOT STORED



add a note add a note User Contributed Notes Memcached::getResultMessage
There are no user contributed notes for this page.

 
show source | credits | sitemap | contact | advertising | mirror sites