agency-zhilfond

Форк
0
108 строк · 3.4 Кб
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 store that will be used by the
13
    | framework. This connection is utilized if another isn't explicitly
14
    | specified when running a cache operation inside the application.
15
    |
16
    */
17

18
    'default' => env('CACHE_STORE', 'database'),
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: "array", "database", "file", "memcached",
30
    |                    "redis", "dynamodb", "octane", "null"
31
    |
32
    */
33

34
    'stores' => [
35

36
        'array' => [
37
            'driver' => 'array',
38
            'serialize' => false,
39
        ],
40

41
        'database' => [
42
            'driver' => 'database',
43
            'connection' => env('DB_CACHE_CONNECTION'),
44
            'table' => env('DB_CACHE_TABLE', 'cache'),
45
            'lock_connection' => env('DB_CACHE_LOCK_CONNECTION'),
46
            'lock_table' => env('DB_CACHE_LOCK_TABLE'),
47
        ],
48

49
        'file' => [
50
            'driver' => 'file',
51
            'path' => storage_path('framework/cache/data'),
52
            'lock_path' => storage_path('framework/cache/data'),
53
        ],
54

55
        'memcached' => [
56
            'driver' => 'memcached',
57
            'persistent_id' => env('MEMCACHED_PERSISTENT_ID'),
58
            'sasl' => [
59
                env('MEMCACHED_USERNAME'),
60
                env('MEMCACHED_PASSWORD'),
61
            ],
62
            'options' => [
63
                // Memcached::OPT_CONNECT_TIMEOUT => 2000,
64
            ],
65
            'servers' => [
66
                [
67
                    'host' => env('MEMCACHED_HOST', '127.0.0.1'),
68
                    'port' => env('MEMCACHED_PORT', 11211),
69
                    'weight' => 100,
70
                ],
71
            ],
72
        ],
73

74
        'redis' => [
75
            'driver' => 'redis',
76
            'connection' => env('REDIS_CACHE_CONNECTION', 'cache'),
77
            'lock_connection' => env('REDIS_CACHE_LOCK_CONNECTION', 'default'),
78
        ],
79

80
        'dynamodb' => [
81
            'driver' => 'dynamodb',
82
            'key' => env('AWS_ACCESS_KEY_ID'),
83
            'secret' => env('AWS_SECRET_ACCESS_KEY'),
84
            'region' => env('AWS_DEFAULT_REGION', 'us-east-1'),
85
            'table' => env('DYNAMODB_CACHE_TABLE', 'cache'),
86
            'endpoint' => env('DYNAMODB_ENDPOINT'),
87
        ],
88

89
        'octane' => [
90
            'driver' => 'octane',
91
        ],
92

93
    ],
94

95
    /*
96
    |--------------------------------------------------------------------------
97
    | Cache Key Prefix
98
    |--------------------------------------------------------------------------
99
    |
100
    | When utilizing the APC, database, memcached, Redis, and DynamoDB cache
101
    | stores, there might be other applications using the same cache. For
102
    | that reason, you may prefix every cache key to avoid collisions.
103
    |
104
    */
105

106
    'prefix' => env('CACHE_PREFIX', Str::slug(env('APP_NAME', 'laravel'), '_').'_cache_'),
107

108
];
109

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.