src/Ganesha/Storage/Adapter/Memcached.php
private function throwExceptionIfErrorOccurred()
    {
        $errorResultCodes = [
            \Memcached::RES_FAILURE,
            \Memcached::RES_SERVER_TEMPORARILY_DISABLED,
            \Memcached::RES_SERVER_MEMORY_ALLOCATION_FAILURE,
        ];

        if (in_array($this->memcached->getResultCode(), $errorResultCodes, true)) {
            throw new StorageException($this->memcached->getResultMessage());
        }
    }
private function throwExceptionIfErrorOccurred()
    {
        $errorResultCodes = [
            \Memcached::RES_FAILURE,
            \Memcached::RES_SERVER_TEMPORARILY_DISABLED,
            \Memcached::RES_SERVER_MEMORY_ALLOCATION_FAILURE,
        ];

        if (in_array($this->memcached->getResultCode(), $errorResultCodes, true)) {
            throw new StorageException($this->memcached->getResultMessage());
        }
    }
private function throwExceptionIfErrorOccurred ( ) { $ errorResultCodes = [ \ Memcached :: RES_FAILURE , \ Memcached :: RES_SERVER_TEMPORARILY_DISABLED , \ Memcached :: RES_SERVER_MEMORY_ALLOCATION_FAILURE , ] ; if ( in_array ( $ this -> memcached -> getResultCode ( ) , $ errorResultCodes , true ) ) { throw new StorageException ( $ this -> memcached -> getResultMessage ( ) ) ; } }
Throws an exception if some error occurs in memcached.

@return void
@throws StorageException
Throws an exception if some error occurs in memcached .