fuel/fuel/core/classes/cache/storage/redis.php
protected function _get_key($remove = false)
	{
		// get the current index information
		list($identifier, $sections, $index) = $this->_get_index();
		$index = $index === null ? array() : $index = $this->_unserialize($index);

		// get the key from the index
		$key = isset($index[$identifier][0]) ? $index[$identifier][0] : false;

		if ($remove === true)
		{
			if ( $key !== false )
			{
				unset($index[$identifier]);
				static::$redis->set($this->config['cache_id'].':index:'.$sections, $this->_serialize($index));
			}
		}
		else
		{
			// create a new key if needed
			$key === false and $key = $this->_new_key();
		}

		return $key;
	}
protected function _get_key($remove = false)
	{
		// get the current index information
		list($identifier, $sections, $index) = $this->_get_index();
		$index = $index === null ? array() : $index = $this->_unserialize($index);

		// get the key from the index
		$key = isset($index[$identifier][0]) ? $index[$identifier][0] : false;

		if ($remove === true)
		{
			if ( $key !== false )
			{
				unset($index[$identifier]);
				static::$redis->set($this->config['cache_id'].':index:'.$sections, $this->_serialize($index));
			}
		}
		else
		{
			// create a new key if needed
			$key === false and $key = $this->_new_key();
		}

		return $key;
	}
protected function _get_key ( $ remove = false ) { // get the current index information list ( $ identifier , $ sections , $ index ) = $ this -> _get_index ( ) ; $ index = $ index === null ? array ( ) : $ index = $ this -> _unserialize ( $ index ) ; // get the key from the index $ key = isset ( $ index [ $ identifier ] [ 0 ] ) ? $ index [ $ identifier ] [ 0 ] : false ; if ( $ remove === true ) { if ( $ key !== false ) { unset ( $ index [ $ identifier ] ) ; static :: $ redis -> set ( $ this -> config [ 'cache_id' ] . ':index:' . $ sections , $ this -> _serialize ( $ index ) ) ; } } else { // create a new key if needed $ key === false and $ key = $ this -> _new_key ( ) ; } return $ key ; }
get's the redis key belonging to the cache identifier

@param   bool  if true, remove the key retrieved from the index
@return  string
get s the redis key belonging to the cache identifier