Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
100.00% |
11 / 11 |
n/a |
0 / 0 |
CRAP | n/a |
0 / 0 |
||
| 1 | <?php |
| 2 | /* |
| 3 | * This file is part of App Project. |
| 4 | * |
| 5 | * For the full copyright and license information, please view the LICENSE |
| 6 | * file that was distributed with this source code. |
| 7 | */ |
| 8 | /** |
| 9 | * Cache config. |
| 10 | * |
| 11 | * @see App::cache() |
| 12 | * @see Framework\Cache\FilesCache::$configs |
| 13 | * @see Framework\Cache\MemcachedCache::$configs |
| 14 | * @see Framework\Cache\RedisCache::$configs |
| 15 | * @see https://docs.aplus-framework.com/guides/libraries/mvc/index.html#cache-service |
| 16 | */ |
| 17 | |
| 18 | use Framework\Cache\FilesCache; |
| 19 | use Framework\Cache\Serializer; |
| 20 | |
| 21 | return [ |
| 22 | 'default' => [ |
| 23 | 'class' => FilesCache::class, |
| 24 | 'configs' => [ |
| 25 | 'directory' => STORAGE_DIR . 'cache', |
| 26 | ], |
| 27 | 'prefix' => null, |
| 28 | 'serializer' => Serializer::PHP, |
| 29 | 'logger_instance' => 'default', |
| 30 | ], |
| 31 | ]; |