public function SetValueCache($key, $val, $timeout = null)
	{
		if (is_null($timeout)) $timeout = $this->ValueCacheTimeout;

		if ($timeout <= 0) return false;

		if (strlen($key) > 250) $key = substr($key,0,150) . md5($key);

		$this->_level1Cache->Set(md5($key),$val,0,$timeout);
		return $this->_level2Cache->Set($key,$val,0,$timeout);
	}
public function SetValueCache($key, $val, $timeout = null)
	{
		if (is_null($timeout)) $timeout = $this->ValueCacheTimeout;

		if ($timeout <= 0) return false;

		if (strlen($key) > 250) $key = substr($key,0,150) . md5($key);

		$this->_level1Cache->Set(md5($key),$val,0,$timeout);
		return $this->_level2Cache->Set($key,$val,0,$timeout);
	}
public function SetValueCache ( $ key , $ val , $ timeout = null ) { if ( is_null ( $ timeout ) ) $ timeout = $ this -> ValueCacheTimeout ; if ( $ timeout <= 0 ) return false ; if ( strlen ( $ key ) > 250 ) $ key = substr ( $ key , 0 , 150 ) . md5 ( $ key ) ; $ this -> _level1Cache -> Set ( md5 ( $ key ) , $ val , 0 , $ timeout ) ; return $ this -> _level2Cache -> Set ( $ key , $ val , 0 , $ timeout ) ; }
ValueCache is a utility method allowing any object or value to
be stored in the cache.  The timout is specified by
ValueCacheTimeout.  This

@param string $sql
@param variant $val
@param int cache timeout (in seconds) default = Phreezer->ValueCacheTimeout.  set to zero for no cache
@return bool true if cache was set, false if not
ValueCache is a utility method allowing any object or value to be stored in the cache . The timout is specified by ValueCacheTimeout . This