framework/caching/CCache.php
public function get($id)
	{
		$value = $this->getValue($this->generateUniqueKey($id));
		if($value===false || $this->serializer===false)
			return $value;
		if($this->serializer===null)
			$value=unserialize($value);
		else
			$value=call_user_func($this->serializer[1], $value);
		if(is_array($value) && (!$value[1] instanceof ICacheDependency || !$value[1]->getHasChanged()))
		{
			Yii::trace('Serving "'.$id.'" from cache','system.caching.'.get_class($this));
			return $value[0];
		}
		else
			return false;
	}
public function get($id)
	{
		$value = $this->getValue($this->generateUniqueKey($id));
		if($value===false || $this->serializer===false)
			return $value;
		if($this->serializer===null)
			$value=unserialize($value);
		else
			$value=call_user_func($this->serializer[1], $value);
		if(is_array($value) && (!$value[1] instanceof ICacheDependency || !$value[1]->getHasChanged()))
		{
			Yii::trace('Serving "'.$id.'" from cache','system.caching.'.get_class($this));
			return $value[0];
		}
		else
			return false;
	}
public function get ( $ id ) { $ value = $ this -> getValue ( $ this -> generateUniqueKey ( $ id ) ) ; if ( $ value === false || $ this -> serializer === false ) return $ value ; if ( $ this -> serializer === null ) $ value = unserialize ( $ value ) ; else $ value = call_user_func ( $ this -> serializer [ 1 ] , $ value ) ; if ( is_array ( $ value ) && ( ! $ value [ 1 ] instanceof ICacheDependency || ! $ value [ 1 ] -> getHasChanged ( ) ) ) { Yii :: trace ( 'Serving "' . $ id . '" from cache' , 'system.caching.' . get_class ( $ this ) ) ; return $ value [ 0 ] ; } else return false ; }
Retrieves a value from cache with a specified key.
@param string $id a key identifying the cached value
@return mixed the value stored in cache, false if the value is not in the cache, expired or the dependency has changed.
Retrieves a value from cache with a specified key .