src/MemcacheCache.php
public function get($name, &$error = false){

		// If disabled, return nothing so that this cache is overwritten

		if(!$this->_enabled){

			return null;
		}

		$name = $this->_prependPrefix($name);

		error_clear_last();

		$value = @$this->_Memcache->get($name);

		// Attempt to separate "real" errors from missing cache entries

		$last_error = error_get_last();

		if($value === false && $last_error !== null && $last_error['type'] === E_WARNING){

			$error = true;

			return null;
		}

		if($value === false){

			$value = null;
		}

		return $value;
	}
public function get($name, &$error = false){

		// If disabled, return nothing so that this cache is overwritten

		if(!$this->_enabled){

			return null;
		}

		$name = $this->_prependPrefix($name);

		error_clear_last();

		$value = @$this->_Memcache->get($name);

		// Attempt to separate "real" errors from missing cache entries

		$last_error = error_get_last();

		if($value === false && $last_error !== null && $last_error['type'] === E_WARNING){

			$error = true;

			return null;
		}

		if($value === false){

			$value = null;
		}

		return $value;
	}
public function get ( $ name , & $ error = false ) { // If disabled, return nothing so that this cache is overwritten if ( ! $ this -> _enabled ) { return null ; } $ name = $ this -> _prependPrefix ( $ name ) ; error_clear_last ( ) ; $ value = @ $ this -> _Memcache -> get ( $ name ) ; // Attempt to separate "real" errors from missing cache entries $ last_error = error_get_last ( ) ; if ( $ value === false && $ last_error !== null && $ last_error [ 'type' ] === E_WARNING ) { $ error = true ; return null ; } if ( $ value === false ) { $ value = null ; } return $ value ; }
Retrieve an entry from the MemcacheCache.

@param string $name
@param boolean &$error
@return mixed
@see Cache::get()
@see Memcache::get()
Retrieve an entry from the MemcacheCache .