public function save($id, $data, $ttl = 60, $raw = FALSE)
	{
		$contents = array(
			'time'		=> time(),
			'ttl'		=> $ttl,
			'data'		=> $data
		);

		if (write_file($this->_cache_path.$id, serialize($contents)))
		{
			chmod($this->_cache_path.$id, 0640);
			return TRUE;
		}

		return FALSE;
	}
public function save($id, $data, $ttl = 60, $raw = FALSE)
	{
		$contents = array(
			'time'		=> time(),
			'ttl'		=> $ttl,
			'data'		=> $data
		);

		if (write_file($this->_cache_path.$id, serialize($contents)))
		{
			chmod($this->_cache_path.$id, 0640);
			return TRUE;
		}

		return FALSE;
	}
public function save ( $ id , $ data , $ ttl = 60 , $ raw = FALSE ) { $ contents = array ( 'time' => time ( ) , 'ttl' => $ ttl , 'data' => $ data ) ; if ( write_file ( $ this -> _cache_path . $ id , serialize ( $ contents ) ) ) { chmod ( $ this -> _cache_path . $ id , 0640 ) ; return TRUE ; } return FALSE ; }
Save into cache

@param	string	$id	Cache ID
@param	mixed	$data	Data to store
@param	int	$ttl	Time to live in seconds
@param	bool	$raw	Whether to store the raw value (unused)
@return	bool	TRUE on success, FALSE on failure
Save into cache