@@ -64,101 +64,101 @@ discard block |
||
| 64 | 64 | /** |
| 65 | 65 | * Specify if the item must provide detailed creation/modification dates |
| 66 | 66 | */ |
| 67 | - 'itemDetailedDate' => false, |
|
| 67 | + 'itemDetailedDate' => false, |
|
| 68 | 68 | |
| 69 | 69 | /** |
| 70 | 70 | * Automatically attempt to fallback to temporary directory |
| 71 | 71 | * if the cache fails to write on the specified directory |
| 72 | 72 | */ |
| 73 | - 'autoTmpFallback' => false, |
|
| 73 | + 'autoTmpFallback' => false, |
|
| 74 | 74 | |
| 75 | 75 | /** |
| 76 | 76 | * Provide a secure file manipulation mechanism, |
| 77 | 77 | * on intensive usage the performance can be affected. |
| 78 | 78 | */ |
| 79 | - 'secureFileManipulation' => false, |
|
| 79 | + 'secureFileManipulation' => false, |
|
| 80 | 80 | |
| 81 | 81 | /** |
| 82 | 82 | * Ignore Symfony notice for Symfony project which |
| 83 | 83 | * do not makes use of PhpFastCache's Symfony Bundle |
| 84 | 84 | */ |
| 85 | - 'ignoreSymfonyNotice' => false, |
|
| 85 | + 'ignoreSymfonyNotice' => false, |
|
| 86 | 86 | |
| 87 | 87 | /** |
| 88 | 88 | * Default time-to-live in second |
| 89 | 89 | */ |
| 90 | - 'defaultTtl' => 900, |
|
| 90 | + 'defaultTtl' => 900, |
|
| 91 | 91 | |
| 92 | 92 | /** |
| 93 | 93 | * Default key hash function |
| 94 | 94 | * (md5 by default) |
| 95 | 95 | */ |
| 96 | - 'defaultKeyHashFunction' => '', |
|
| 96 | + 'defaultKeyHashFunction' => '', |
|
| 97 | 97 | |
| 98 | 98 | /** |
| 99 | 99 | * The securityKey that will be used |
| 100 | 100 | * to create sub-directory |
| 101 | 101 | * (Files-based drivers only) |
| 102 | 102 | */ |
| 103 | - 'securityKey' => 'Auto', |
|
| 103 | + 'securityKey' => 'Auto', |
|
| 104 | 104 | |
| 105 | 105 | /** |
| 106 | 106 | * Auto-generate .htaccess if it's missing |
| 107 | 107 | * (Files-based drivers only) |
| 108 | 108 | */ |
| 109 | - 'htaccess' => true, |
|
| 109 | + 'htaccess' => true, |
|
| 110 | 110 | |
| 111 | 111 | /** |
| 112 | 112 | * Default files chmod |
| 113 | 113 | * 0777 recommended |
| 114 | 114 | * (Files-based drivers only) |
| 115 | 115 | */ |
| 116 | - 'default_chmod' => 0777, |
|
| 116 | + 'default_chmod' => 0777, |
|
| 117 | 117 | |
| 118 | 118 | /** |
| 119 | 119 | * The path where we will writecache files |
| 120 | 120 | * default value if empty: sys_get_temp_dir() |
| 121 | 121 | * (Files-based drivers only) |
| 122 | 122 | */ |
| 123 | - 'path' => '', |
|
| 123 | + 'path' => '', |
|
| 124 | 124 | |
| 125 | 125 | /** |
| 126 | 126 | * Driver fallback in case of failure. |
| 127 | 127 | * Caution, in case of failure an E_WARNING |
| 128 | 128 | * error will always be raised |
| 129 | 129 | */ |
| 130 | - 'fallback' => false, |
|
| 130 | + 'fallback' => false, |
|
| 131 | 131 | |
| 132 | 132 | /** |
| 133 | 133 | * Maximum size (bytes) of object store in memory |
| 134 | 134 | * (Memcache(d) drivers only) |
| 135 | 135 | */ |
| 136 | - 'limited_memory_each_object' => 4096, |
|
| 136 | + 'limited_memory_each_object' => 4096, |
|
| 137 | 137 | |
| 138 | 138 | /** |
| 139 | 139 | * Compress stored data, if the backend supports it |
| 140 | 140 | * (Memcache(d) drivers only) |
| 141 | 141 | */ |
| 142 | - 'compress_data' => false, |
|
| 142 | + 'compress_data' => false, |
|
| 143 | 143 | |
| 144 | 144 | /** |
| 145 | 145 | * Prevent cache slams when |
| 146 | 146 | * making use of heavy cache |
| 147 | 147 | * items |
| 148 | 148 | */ |
| 149 | - 'preventCacheSlams' => false, |
|
| 149 | + 'preventCacheSlams' => false, |
|
| 150 | 150 | |
| 151 | 151 | /** |
| 152 | 152 | * Cache slams timeout |
| 153 | 153 | * in seconds |
| 154 | 154 | */ |
| 155 | - 'cacheSlamsTimeout' => 15, |
|
| 155 | + 'cacheSlamsTimeout' => 15, |
|
| 156 | 156 | |
| 157 | 157 | /** |
| 158 | 158 | * Cache slams timeout |
| 159 | 159 | * in seconds |
| 160 | 160 | */ |
| 161 | - 'cacheFileExtension' => 'txt', |
|
| 161 | + 'cacheFileExtension' => 'txt', |
|
| 162 | 162 | |
| 163 | 163 | ]; |
| 164 | 164 | |
@@ -168,7 +168,7 @@ discard block |
||
| 168 | 168 | * @var array |
| 169 | 169 | */ |
| 170 | 170 | protected static $safeFileExtensions = [ |
| 171 | - 'txt', 'cache', 'db', 'pfc' |
|
| 171 | + 'txt', 'cache', 'db', 'pfc' |
|
| 172 | 172 | ]; |
| 173 | 173 | |
| 174 | 174 | /** |
@@ -373,24 +373,24 @@ discard block |
||
| 373 | 373 | public static function getStaticSystemDrivers() |
| 374 | 374 | { |
| 375 | 375 | return [ |
| 376 | - 'Apc', |
|
| 377 | - 'Apcu', |
|
| 378 | - 'Cassandra', |
|
| 379 | - 'Couchbase', |
|
| 380 | - 'Couchdb', |
|
| 381 | - 'Devnull', |
|
| 382 | - 'Files', |
|
| 383 | - 'Leveldb', |
|
| 384 | - 'Memcache', |
|
| 385 | - 'Memcached', |
|
| 386 | - 'Memstatic', |
|
| 387 | - 'Mongodb', |
|
| 388 | - 'Predis', |
|
| 389 | - 'Redis', |
|
| 390 | - 'Ssdb', |
|
| 391 | - 'Sqlite', |
|
| 392 | - 'Wincache', |
|
| 393 | - 'Xcache', |
|
| 376 | + 'Apc', |
|
| 377 | + 'Apcu', |
|
| 378 | + 'Cassandra', |
|
| 379 | + 'Couchbase', |
|
| 380 | + 'Couchdb', |
|
| 381 | + 'Devnull', |
|
| 382 | + 'Files', |
|
| 383 | + 'Leveldb', |
|
| 384 | + 'Memcache', |
|
| 385 | + 'Memcached', |
|
| 386 | + 'Memstatic', |
|
| 387 | + 'Mongodb', |
|
| 388 | + 'Predis', |
|
| 389 | + 'Redis', |
|
| 390 | + 'Ssdb', |
|
| 391 | + 'Sqlite', |
|
| 392 | + 'Wincache', |
|
| 393 | + 'Xcache', |
|
| 394 | 394 | ]; |
| 395 | 395 | } |
| 396 | 396 | |
@@ -400,9 +400,9 @@ discard block |
||
| 400 | 400 | public static function getStaticAllDrivers() |
| 401 | 401 | { |
| 402 | 402 | return array_merge(self::getStaticSystemDrivers(), [ |
| 403 | - 'Devtrue', |
|
| 404 | - 'Devfalse', |
|
| 405 | - 'Cookie', |
|
| 403 | + 'Devtrue', |
|
| 404 | + 'Devfalse', |
|
| 405 | + 'Cookie', |
|
| 406 | 406 | ]); |
| 407 | 407 | } |
| 408 | 408 | |
@@ -504,7 +504,7 @@ discard block |
||
| 504 | 504 | } |
| 505 | 505 | if(!in_array($configValue, self::$safeFileExtensions)){ |
| 506 | 506 | throw new phpFastCacheInvalidConfigurationException( |
| 507 | - "{$configName} is not a safe extension, currently allowed extension: " . implode(', ', self::$safeFileExtensions) |
|
| 507 | + "{$configName} is not a safe extension, currently allowed extension: " . implode(', ', self::$safeFileExtensions) |
|
| 508 | 508 | ); |
| 509 | 509 | } |
| 510 | 510 | break; |