GoLang Memcached::getResultCode

request it (115)
GoLang replacement for PHP's Memcached::getResultCode [edit | history]

Do you know a GoLang replacement for PHP's Memcached::getResultCode? Write it!

PHP Memcached::getResultCode

PHP original manual for Memcached::getResultCode [ show | php.net ]


(PECL memcached >= 0.1.0)

Memcached::getResultCodeReturn the result code of the last operation


public int Memcached::getResultCode ( void )

Memcached::getResultCode() returns one of the Memcached::RES_* constants that is the result of the last executed Memcached method.


This function has no parameters.

Return Values

Result code of the last Memcached operation.


Example #1 Memcached::getResultCode() example

= new Memcached();

if (
$m->getResultCode() == Memcached::RES_NOTSTORED) {
/* ... */