cache.php 2.09 KB
Newer Older
1 2
<?php

3
return [
4

Taylor Otwell 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.
    |
    */
15

Taylor Otwell committed
16
    'default' => env('CACHE_DRIVER', 'file'),
17

Taylor Otwell committed
18 19 20 21 22 23 24 25 26 27
    /*
    |--------------------------------------------------------------------------
    | 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.
    |
    */
28

Taylor Otwell committed
29
    'stores' => [
30

Taylor Otwell committed
31
        'apc' => [
Graham Campbell committed
32
            'driver' => 'apc',
Taylor Otwell committed
33
        ],
34

Taylor Otwell committed
35
        'array' => [
Graham Campbell committed
36
            'driver' => 'array',
Taylor Otwell committed
37
        ],
38

Taylor Otwell committed
39 40 41 42 43
        'database' => [
            'driver' => 'database',
            'table'  => 'cache',
            'connection' => null,
        ],
44

Taylor Otwell committed
45 46
        'file' => [
            'driver' => 'file',
47
            'path'   => storage_path('framework/cache'),
Taylor Otwell committed
48
        ],
49

Taylor Otwell committed
50 51 52 53
        'memcached' => [
            'driver'  => 'memcached',
            'servers' => [
                [
Graham Campbell committed
54
                    'host' => '127.0.0.1', 'port' => 11211, 'weight' => 100,
Taylor Otwell committed
55 56 57
                ],
            ],
        ],
58

Taylor Otwell committed
59 60 61 62
        'redis' => [
            'driver' => 'redis',
            'connection' => 'default',
        ],
63

Taylor Otwell committed
64
    ],
65

Taylor Otwell committed
66 67 68 69 70 71 72 73 74 75
    /*
    |--------------------------------------------------------------------------
    | 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.
    |
    */
76

Taylor Otwell committed
77
    'prefix' => 'laravel',
78

79
];