@@ -57,14 +57,14 @@ discard block |
||
57 | 57 | * @var array |
58 | 58 | */ |
59 | 59 | protected static $config = [ |
60 | - 'securityKey' => 'auto',// The securityKey that will be used to create sub-directory |
|
61 | - 'defaultTtl' => 900,// Default time-to-live in second |
|
62 | - 'htaccess' => true,// Auto-generate .htaccess if tit is missing |
|
63 | - 'default_chmod' => 0777, // 0777 recommended |
|
64 | - 'path' => '',// if not set will be the value of sys_get_temp_dir() |
|
65 | - 'fallback' => false, //Fall back when old driver is not support |
|
66 | - 'limited_memory_each_object' => 4096, // maximum size (bytes) of object store in memory |
|
67 | - 'compress_data' => false, // compress stored data, if the backend supports it |
|
60 | + 'securityKey' => 'auto',// The securityKey that will be used to create sub-directory |
|
61 | + 'defaultTtl' => 900,// Default time-to-live in second |
|
62 | + 'htaccess' => true,// Auto-generate .htaccess if tit is missing |
|
63 | + 'default_chmod' => 0777, // 0777 recommended |
|
64 | + 'path' => '',// if not set will be the value of sys_get_temp_dir() |
|
65 | + 'fallback' => false, //Fall back when old driver is not support |
|
66 | + 'limited_memory_each_object' => 4096, // maximum size (bytes) of object store in memory |
|
67 | + 'compress_data' => false, // compress stored data, if the backend supports it |
|
68 | 68 | ]; |
69 | 69 | |
70 | 70 | /** |
@@ -112,7 +112,7 @@ discard block |
||
112 | 112 | } |
113 | 113 | } |
114 | 114 | } else if(++$badPracticeOmeter[$driver] >= 5){ |
115 | - trigger_error('[' . $driver . '] Calling many times CacheManager::getInstance() for already instanced drivers is a bad practice and have a significant impact on performances. |
|
115 | + trigger_error('[' . $driver . '] Calling many times CacheManager::getInstance() for already instanced drivers is a bad practice and have a significant impact on performances. |
|
116 | 116 | See https://github.com/PHPSocialNetwork/phpfastcache/wiki/[V5]-Why-calling-getInstance%28%29-each-time-is-a-bad-practice-%3F'); |
117 | 117 | } |
118 | 118 | |
@@ -223,23 +223,23 @@ discard block |
||
223 | 223 | public static function getStaticSystemDrivers() |
224 | 224 | { |
225 | 225 | return [ |
226 | - 'Sqlite', |
|
227 | - 'Files', |
|
228 | - 'Apc', |
|
229 | - 'Apcu', |
|
230 | - 'Memcache', |
|
231 | - 'Memcached', |
|
232 | - 'Couchbase', |
|
233 | - 'Mongodb', |
|
234 | - 'Predis', |
|
235 | - 'Redis', |
|
236 | - 'Ssdb', |
|
237 | - 'Leveldb', |
|
238 | - 'Wincache', |
|
239 | - 'Xcache', |
|
240 | - 'Zenddisk', |
|
241 | - 'Zendshm', |
|
242 | - 'Devnull', |
|
226 | + 'Sqlite', |
|
227 | + 'Files', |
|
228 | + 'Apc', |
|
229 | + 'Apcu', |
|
230 | + 'Memcache', |
|
231 | + 'Memcached', |
|
232 | + 'Couchbase', |
|
233 | + 'Mongodb', |
|
234 | + 'Predis', |
|
235 | + 'Redis', |
|
236 | + 'Ssdb', |
|
237 | + 'Leveldb', |
|
238 | + 'Wincache', |
|
239 | + 'Xcache', |
|
240 | + 'Zenddisk', |
|
241 | + 'Zendshm', |
|
242 | + 'Devnull', |
|
243 | 243 | ]; |
244 | 244 | } |
245 | 245 |
@@ -130,8 +130,8 @@ |
||
130 | 130 | */ |
131 | 131 | public function getStats() |
132 | 132 | { |
133 | - if(function_exists('zend_shm_cache_info')) { |
|
134 | - $stats = (array)zend_shm_cache_info(); |
|
133 | + if (function_exists('zend_shm_cache_info')) { |
|
134 | + $stats = (array) zend_shm_cache_info(); |
|
135 | 135 | return (new driverStatistic()) |
136 | 136 | ->setData(implode(', ', array_keys($this->namespaces))) |
137 | 137 | ->setInfo(sprintf("The Zend memory have %d item(s) in cache.\n For more information see RawData.", $stats['items_total'])) |