PHPExcel 缓存启用失败

我现在导出Excel表格,因为数据量太大超出内存了。
所以启用了缓存,使用的是memcache,但是最后执行的时候还是说内存不足,求各位大神帮帮忙。代码如下:
$cacheMethod = PHPExcel_CachedObjectStorageFactory::cache_to_memcache;

$cacheSettings = array( 'memcacheServer' => 'localhost',

'memcachePort' => 11211,

'cacheTime' => 600

);

PHPExcel_Settings::setCacheStorageMethod($cacheMethod, $cacheSettings);