@@ -56,18 +56,18 @@ discard block |
||
| 56 | 56 | * @var ExtendedCacheItemPoolInterface[] |
| 57 | 57 | */ |
| 58 | 58 | protected static $config = [ |
| 59 | - 'itemDetailedDate' => false, // Specify if the item must provide detailed creation/modification dates |
|
| 60 | - 'autoTmpFallback' => false, // Automatically attempt to fallback to the temporary directory if the cache fails to write to the specified directory |
|
| 61 | - 'secureFileManipulation' => false, // Provide a secure file manipulation mechanism; on intensive usage the performance can be negatively affected. |
|
| 62 | - 'ignoreSymfonyNotice' => false, // Ignore Symfony notices for Symfony projects that do not makes use of PhpFastCache's Symfony Bundle |
|
| 63 | - 'defaultTtl' => 900, // Default time-to-live in seconds |
|
| 64 | - 'securityKey' => 'auto', // The securityKey that will be used to create the sub-directory |
|
| 65 | - 'htaccess' => true, // Auto-generate .htaccess if it is missing |
|
| 66 | - 'default_chmod' => 0777, // 0777 is recommended |
|
| 67 | - 'path' => '', // If not set will be the value of sys_get_temp_dir() |
|
| 68 | - 'fallback' => false, // Fall back when old driver is not supported |
|
| 69 | - 'limited_memory_each_object' => 4096, // Maximum size (bytes) of object store in memory |
|
| 70 | - 'compress_data' => false, // Compress stored data if the backend supports it |
|
| 59 | + 'itemDetailedDate' => false, // Specify if the item must provide detailed creation/modification dates |
|
| 60 | + 'autoTmpFallback' => false, // Automatically attempt to fallback to the temporary directory if the cache fails to write to the specified directory |
|
| 61 | + 'secureFileManipulation' => false, // Provide a secure file manipulation mechanism; on intensive usage the performance can be negatively affected. |
|
| 62 | + 'ignoreSymfonyNotice' => false, // Ignore Symfony notices for Symfony projects that do not makes use of PhpFastCache's Symfony Bundle |
|
| 63 | + 'defaultTtl' => 900, // Default time-to-live in seconds |
|
| 64 | + 'securityKey' => 'auto', // The securityKey that will be used to create the sub-directory |
|
| 65 | + 'htaccess' => true, // Auto-generate .htaccess if it is missing |
|
| 66 | + 'default_chmod' => 0777, // 0777 is recommended |
|
| 67 | + 'path' => '', // If not set will be the value of sys_get_temp_dir() |
|
| 68 | + 'fallback' => false, // Fall back when old driver is not supported |
|
| 69 | + 'limited_memory_each_object' => 4096, // Maximum size (bytes) of object store in memory |
|
| 70 | + 'compress_data' => false, // Compress stored data if the backend supports it |
|
| 71 | 71 | ]; |
| 72 | 72 | |
| 73 | 73 | /** |
@@ -121,7 +121,7 @@ discard block |
||
| 121 | 121 | } |
| 122 | 122 | } |
| 123 | 123 | } else if(++$badPracticeOmeter[$driver] >= 5){ |
| 124 | - trigger_error('[' . $driver . '] Calling many times CacheManager::getInstance() for already instanced drivers is a bad practice and have a significant impact on performances. |
|
| 124 | + trigger_error('[' . $driver . '] Calling many times CacheManager::getInstance() for already instanced drivers is a bad practice and have a significant impact on performances. |
|
| 125 | 125 | See https://github.com/PHPSocialNetwork/phpfastcache/wiki/[V5]-Why-calling-getInstance%28%29-each-time-is-a-bad-practice-%3F'); |
| 126 | 126 | } |
| 127 | 127 | |
@@ -248,23 +248,23 @@ discard block |
||
| 248 | 248 | public static function getStaticSystemDrivers() |
| 249 | 249 | { |
| 250 | 250 | return [ |
| 251 | - 'Apc', |
|
| 252 | - 'Apcu', |
|
| 253 | - 'Cassandra', |
|
| 254 | - 'Couchbase', |
|
| 255 | - 'Devnull', |
|
| 256 | - 'Files', |
|
| 257 | - 'Leveldb', |
|
| 258 | - 'Memcache', |
|
| 259 | - 'Memcached', |
|
| 260 | - 'Memstatic', |
|
| 261 | - 'Mongodb', |
|
| 262 | - 'Predis', |
|
| 263 | - 'Redis', |
|
| 264 | - 'Ssdb', |
|
| 265 | - 'Sqlite', |
|
| 266 | - 'Wincache', |
|
| 267 | - 'Xcache', |
|
| 251 | + 'Apc', |
|
| 252 | + 'Apcu', |
|
| 253 | + 'Cassandra', |
|
| 254 | + 'Couchbase', |
|
| 255 | + 'Devnull', |
|
| 256 | + 'Files', |
|
| 257 | + 'Leveldb', |
|
| 258 | + 'Memcache', |
|
| 259 | + 'Memcached', |
|
| 260 | + 'Memstatic', |
|
| 261 | + 'Mongodb', |
|
| 262 | + 'Predis', |
|
| 263 | + 'Redis', |
|
| 264 | + 'Ssdb', |
|
| 265 | + 'Sqlite', |
|
| 266 | + 'Wincache', |
|
| 267 | + 'Xcache', |
|
| 268 | 268 | ]; |
| 269 | 269 | } |
| 270 | 270 | |