Subversion-Projekte lars-tiefland.laravel_shop

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
2 lars 1
<?php
2
 
3
use Illuminate\Support\Str;
4
 
5
return [
6
 
7
    /*
8
    |--------------------------------------------------------------------------
9
    | Default Cache Store
10
    |--------------------------------------------------------------------------
11
    |
12
    | This option controls the default cache connection that gets used while
13
    | using this caching library. This connection is used when another is
14
    | not explicitly specified when executing a given caching function.
15
    |
16
    */
17
 
18
    'default' => env('CACHE_DRIVER', 'file'),
19
 
20
    /*
21
    |--------------------------------------------------------------------------
22
    | Cache Stores
23
    |--------------------------------------------------------------------------
24
    |
25
    | Here you may define all of the cache "stores" for your application as
26
    | well as their drivers. You may even define multiple stores for the
27
    | same cache driver to group types of items stored in your caches.
28
    |
29
    | Supported drivers: "apc", "array", "database", "file",
30
    |         "memcached", "redis", "dynamodb", "octane", "null"
31
    |
32
    */
33
 
34
    'stores' => [
35
 
36
        'apc' => [
37
            'driver' => 'apc',
38
        ],
39
 
40
        'array' => [
41
            'driver' => 'array',
42
            'serialize' => false,
43
        ],
44
 
45
        'database' => [
46
            'driver' => 'database',
47
            'table' => 'cache',
48
            'connection' => null,
49
            'lock_connection' => null,
50
        ],
51
 
52
        'file' => [
53
            'driver' => 'file',
54
            'path' => storage_path('framework/cache/data'),
55
        ],
56
 
57
        'memcached' => [
58
            'driver' => 'memcached',
59
            'persistent_id' => env('MEMCACHED_PERSISTENT_ID'),
60
            'sasl' => [
61
                env('MEMCACHED_USERNAME'),
62
                env('MEMCACHED_PASSWORD'),
63
            ],
64
            'options' => [
65
                // Memcached::OPT_CONNECT_TIMEOUT => 2000,
66
            ],
67
            'servers' => [
68
                [
69
                    'host' => env('MEMCACHED_HOST', '127.0.0.1'),
70
                    'port' => env('MEMCACHED_PORT', 11211),
71
                    'weight' => 100,
72
                ],
73
            ],
74
        ],
75
 
76
        'redis' => [
77
            'driver' => 'redis',
78
            'connection' => 'cache',
79
            'lock_connection' => 'default',
80
        ],
81
 
82
        'dynamodb' => [
83
            'driver' => 'dynamodb',
84
            'key' => env('AWS_ACCESS_KEY_ID'),
85
            'secret' => env('AWS_SECRET_ACCESS_KEY'),
86
            'region' => env('AWS_DEFAULT_REGION', 'us-east-1'),
87
            'table' => env('DYNAMODB_CACHE_TABLE', 'cache'),
88
            'endpoint' => env('DYNAMODB_ENDPOINT'),
89
        ],
90
 
91
        'octane' => [
92
            'driver' => 'octane',
93
        ],
94
 
95
    ],
96
 
97
    /*
98
    |--------------------------------------------------------------------------
99
    | Cache Key Prefix
100
    |--------------------------------------------------------------------------
101
    |
102
    | When utilizing the APC, database, memcached, Redis, or DynamoDB cache
103
    | stores there might be other applications using the same cache. For
104
    | that reason, you may prefix every cache key to avoid collisions.
105
    |
106
    */
107
 
108
    'prefix' => env('CACHE_PREFIX', Str::slug(env('APP_NAME', 'laravel'), '_').'_cache_'),
109
 
110
];