@@ -52,13 +52,13 @@ discard block |
||
| 52 | 52 | * @var array |
| 53 | 53 | */ |
| 54 | 54 | public static $config = [ |
| 55 | - 'default_chmod' => 0777, // 0777 recommended |
|
| 56 | - 'fallback' => 'files', //Fall back when old driver is not support |
|
| 57 | - 'securityKey' => 'auto', |
|
| 58 | - 'htaccess' => true, |
|
| 59 | - 'path' => '',// if not set will be the value of sys_get_temp_dir() |
|
| 60 | - "limited_memory_each_object" => 4096, // maximum size (bytes) of object store in memory |
|
| 61 | - "compress_data" => false, // compress stored data, if the backend supports it |
|
| 55 | + 'default_chmod' => 0777, // 0777 recommended |
|
| 56 | + 'fallback' => 'files', //Fall back when old driver is not support |
|
| 57 | + 'securityKey' => 'auto', |
|
| 58 | + 'htaccess' => true, |
|
| 59 | + 'path' => '',// if not set will be the value of sys_get_temp_dir() |
|
| 60 | + "limited_memory_each_object" => 4096, // maximum size (bytes) of object store in memory |
|
| 61 | + "compress_data" => false, // compress stored data, if the backend supports it |
|
| 62 | 62 | ]; |
| 63 | 63 | |
| 64 | 64 | /** |
@@ -92,7 +92,7 @@ discard block |
||
| 92 | 92 | $class = self::getNamespacePath() . $driver . '\Driver'; |
| 93 | 93 | self::$instances[ $instance ] = new $class($config); |
| 94 | 94 | } else if(++$badPracticeOmeter[$driver] >= 5){ |
| 95 | - trigger_error('[' . $driver . '] Calling many times CacheManager::getInstance() for already instanced drivers is a bad practice and have a significant impact on performances. |
|
| 95 | + trigger_error('[' . $driver . '] Calling many times CacheManager::getInstance() for already instanced drivers is a bad practice and have a significant impact on performances. |
|
| 96 | 96 | See https://github.com/PHPSocialNetwork/phpfastcache/wiki/[V5]-Why-calling-getInstance%28%29-each-time-is-a-bad-practice-%3F'); |
| 97 | 97 | } |
| 98 | 98 | |
@@ -181,21 +181,21 @@ discard block |
||
| 181 | 181 | public static function getStaticSystemDrivers() |
| 182 | 182 | { |
| 183 | 183 | return [ |
| 184 | - 'Sqlite', |
|
| 185 | - 'Files', |
|
| 186 | - 'Apc', |
|
| 187 | - 'Apcu', |
|
| 188 | - 'Memcache', |
|
| 189 | - 'Memcached', |
|
| 190 | - 'Couchbase', |
|
| 191 | - 'Mongodb', |
|
| 192 | - 'Predis', |
|
| 193 | - 'Redis', |
|
| 194 | - 'Ssdb', |
|
| 195 | - 'Leveldb', |
|
| 196 | - 'Wincache', |
|
| 197 | - 'Xcache', |
|
| 198 | - 'Devnull', |
|
| 184 | + 'Sqlite', |
|
| 185 | + 'Files', |
|
| 186 | + 'Apc', |
|
| 187 | + 'Apcu', |
|
| 188 | + 'Memcache', |
|
| 189 | + 'Memcached', |
|
| 190 | + 'Couchbase', |
|
| 191 | + 'Mongodb', |
|
| 192 | + 'Predis', |
|
| 193 | + 'Redis', |
|
| 194 | + 'Ssdb', |
|
| 195 | + 'Leveldb', |
|
| 196 | + 'Wincache', |
|
| 197 | + 'Xcache', |
|
| 198 | + 'Devnull', |
|
| 199 | 199 | ]; |
| 200 | 200 | } |
| 201 | 201 | |