@@ -51,14 +51,14 @@ discard block |
||
51 | 51 | * @var array |
52 | 52 | */ |
53 | 53 | protected static $config = [ |
54 | - 'securityKey' => 'auto',// The securityKey that will be used to create sub-directory |
|
55 | - 'defaultTtl' => 900,// Default time-to-live in second |
|
56 | - 'htaccess' => true,// Auto-generate .htaccess if tit is missing |
|
57 | - 'default_chmod' => 0777, // 0777 recommended |
|
58 | - 'path' => '',// if not set will be the value of sys_get_temp_dir() |
|
59 | - 'fallback' => false, //Fall back when old driver is not support |
|
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 |
|
54 | + 'securityKey' => 'auto',// The securityKey that will be used to create sub-directory |
|
55 | + 'defaultTtl' => 900,// Default time-to-live in second |
|
56 | + 'htaccess' => true,// Auto-generate .htaccess if tit is missing |
|
57 | + 'default_chmod' => 0777, // 0777 recommended |
|
58 | + 'path' => '',// if not set will be the value of sys_get_temp_dir() |
|
59 | + 'fallback' => false, //Fall back when old driver is not support |
|
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 | /** |
@@ -106,7 +106,7 @@ discard block |
||
106 | 106 | } |
107 | 107 | } |
108 | 108 | } else if(++$badPracticeOmeter[$driver] >= 5){ |
109 | - trigger_error('[' . $driver . '] Calling many times CacheManager::getInstance() for already instanced drivers is a bad practice and have a significant impact on performances. |
|
109 | + trigger_error('[' . $driver . '] Calling many times CacheManager::getInstance() for already instanced drivers is a bad practice and have a significant impact on performances. |
|
110 | 110 | See https://github.com/PHPSocialNetwork/phpfastcache/wiki/[V5]-Why-calling-getInstance%28%29-each-time-is-a-bad-practice-%3F'); |
111 | 111 | } |
112 | 112 | |
@@ -219,21 +219,21 @@ discard block |
||
219 | 219 | public static function getStaticSystemDrivers() |
220 | 220 | { |
221 | 221 | return [ |
222 | - 'Sqlite', |
|
223 | - 'Files', |
|
224 | - 'Apc', |
|
225 | - 'Apcu', |
|
226 | - 'Memcache', |
|
227 | - 'Memcached', |
|
228 | - 'Couchbase', |
|
229 | - 'Mongodb', |
|
230 | - 'Predis', |
|
231 | - 'Redis', |
|
232 | - 'Ssdb', |
|
233 | - 'Leveldb', |
|
234 | - 'Wincache', |
|
235 | - 'Xcache', |
|
236 | - 'Devnull', |
|
222 | + 'Sqlite', |
|
223 | + 'Files', |
|
224 | + 'Apc', |
|
225 | + 'Apcu', |
|
226 | + 'Memcache', |
|
227 | + 'Memcached', |
|
228 | + 'Couchbase', |
|
229 | + 'Mongodb', |
|
230 | + 'Predis', |
|
231 | + 'Redis', |
|
232 | + 'Ssdb', |
|
233 | + 'Leveldb', |
|
234 | + 'Wincache', |
|
235 | + 'Xcache', |
|
236 | + 'Devnull', |
|
237 | 237 | ]; |
238 | 238 | } |
239 | 239 |