MaterialsCalculator

Форк
0
111 строк · 3.3 Кб
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
            'lock_path' => storage_path('framework/cache/data'),
56
        ],
57

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

77
        'redis' => [
78
            'driver' => 'redis',
79
            'connection' => 'cache',
80
            'lock_connection' => 'default',
81
        ],
82

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

92
        'octane' => [
93
            'driver' => 'octane',
94
        ],
95

96
    ],
97

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

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

111
];
112

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

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

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

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