20 self::cache_in_memory,
21 self::cache_in_memory_gzip,
22 self::cache_in_memory_serialized,
23 self::cache_to_phpTemp,
24 self::cache_to_discISAM,
26 self::cache_to_memcache,
27 self::cache_to_wincache,
32 self::cache_in_memory => array(
34 self::cache_in_memory_gzip => array(
36 self::cache_in_memory_serialized => array(
38 self::cache_to_phpTemp => array(
'memoryCacheSize' =>
'1MB'
40 self::cache_to_discISAM => array(
42 self::cache_to_apc => array(
'cacheTime' => 600
44 self::cache_to_memcache => array(
'memcacheServer' =>
'localhost',
45 'memcachePort' => 11211,
48 self::cache_to_wincache => array(
'cacheTime' => 600
57 if (!is_null(self::$_cacheStorageMethod)) {
65 if (!is_null(self::$_cacheStorageClass)) {
77 public static function initialize($method = self::cache_in_memory, $arguments = array()) {
78 if (!in_array($method,self::$_storageMethods)) {
83 case self::cache_to_apc :
84 if (!function_exists(
'apc_store')) {
87 if (apc_sma_info() ===
false) {
91 case self::cache_to_memcache :
92 if (!function_exists(
'memcache_add')) {
96 case self::cache_to_wincache :
97 if (!function_exists(
'wincache_ucache_add')) {
103 self::$_storageMethodParameters[$method] = self::$_storageMethodDefaultParameters[$method];
104 foreach($arguments as $k => $v) {
105 if (isset(self::$_storageMethodParameters[$method][$k])) {
106 self::$_storageMethodParameters[$method][$k] = $v;
110 if (is_null(self::$_cacheStorageMethod)) {
111 self::$_cacheStorageClass =
'PHPExcel_CachedObjectStorage_'.$method;
112 self::$_cacheStorageMethod = $method;
119 if (is_null(self::$_cacheStorageMethod)) {
124 if (!is_null($instance)) {