cache.php 2.6 KB
Newer Older
Nicolas Widart's avatar
Nicolas Widart committed
1 2 3 4
<?php

return [

Nicolas Widart's avatar
Nicolas Widart committed
5 6 7 8 9 10 11 12 13 14
    /*
    |--------------------------------------------------------------------------
    | Default Cache Store
    |--------------------------------------------------------------------------
    |
    | This option controls the default cache connection that gets used while
    | using this caching library. This connection is used when another is
    | not explicitly specified when executing a given caching function.
    |
    */
Nicolas Widart's avatar
Nicolas Widart committed
15

16
    'default' => env('CACHE_DRIVER', 'array'),
Nicolas Widart's avatar
Nicolas Widart committed
17

18 19 20 21 22 23 24 25
    /*
    |--------------------------------------------------------------------------
    | Cache Time
    |--------------------------------------------------------------------------
    | The default cache time in minutes used on the Cache Decorators
    */
    'time' => 60,

Nicolas Widart's avatar
Nicolas Widart committed
26 27 28 29 30 31 32 33 34 35
    /*
    |--------------------------------------------------------------------------
    | Cache Stores
    |--------------------------------------------------------------------------
    |
    | Here you may define all of the cache "stores" for your application as
    | well as their drivers. You may even define multiple stores for the
    | same cache driver to group types of items stored in your caches.
    |
    */
Nicolas Widart's avatar
Nicolas Widart committed
36

Nicolas Widart's avatar
Nicolas Widart committed
37
    'stores' => [
Nicolas Widart's avatar
Nicolas Widart committed
38

Nicolas Widart's avatar
Nicolas Widart committed
39 40 41
        'apc' => [
            'driver' => 'apc',
        ],
Nicolas Widart's avatar
Nicolas Widart committed
42

Nicolas Widart's avatar
Nicolas Widart committed
43 44 45
        'array' => [
            'driver' => 'array',
        ],
Nicolas Widart's avatar
Nicolas Widart committed
46

Nicolas Widart's avatar
Nicolas Widart committed
47 48 49 50 51
        'database' => [
            'driver' => 'database',
            'table' => 'cache',
            'connection' => null,
        ],
Nicolas Widart's avatar
Nicolas Widart committed
52

Nicolas Widart's avatar
Nicolas Widart committed
53 54 55 56
        'file' => [
            'driver' => 'file',
            'path' => storage_path('framework/cache'),
        ],
Nicolas Widart's avatar
Nicolas Widart committed
57

Nicolas Widart's avatar
Nicolas Widart committed
58 59 60 61 62 63 64 65 66 67
        'memcached' => [
            'driver' => 'memcached',
            'servers' => [
                [
                    'host' => env('MEMCACHED_HOST', '127.0.0.1'),
                    'port' => env('MEMCACHED_PORT', 11211),
                    'weight' => 100,
                ],
            ],
        ],
Nicolas Widart's avatar
Nicolas Widart committed
68

Nicolas Widart's avatar
Nicolas Widart committed
69 70 71 72
        'redis' => [
            'driver' => 'redis',
            'connection' => 'default',
        ],
Nicolas Widart's avatar
Nicolas Widart committed
73

74 75 76 77
        'translations' => [
            'driver' => env('TRANSLATIONS_CACHE_DRIVER', 'file'),
            'path' => storage_path('framework/cache'),
        ],
Nicolas Widart's avatar
Nicolas Widart committed
78
    ],
Nicolas Widart's avatar
Nicolas Widart committed
79

Nicolas Widart's avatar
Nicolas Widart committed
80 81 82 83 84 85 86 87 88 89
    /*
    |--------------------------------------------------------------------------
    | Cache Key Prefix
    |--------------------------------------------------------------------------
    |
    | When utilizing a RAM based store such as APC or Memcached, there might
    | be other applications utilizing the same cache. So, we'll specify a
    | value to get prefixed to all our keys so we can avoid collisions.
    |
    */
Nicolas Widart's avatar
Nicolas Widart committed
90

Nicolas Widart's avatar
Nicolas Widart committed
91
    'prefix' => 'laravel',
Nicolas Widart's avatar
Nicolas Widart committed
92 93

];