this repo has no description
1<?php
2
3use Illuminate\Support\Str;
4
5return [
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",
31 | "failover", "null"
32 |
33 */
34
35 'stores' => [
36
37 'array' => [
38 'driver' => 'array',
39 'serialize' => false,
40 ],
41
42 'database' => [
43 'driver' => 'database',
44 'connection' => env('DB_CACHE_CONNECTION'),
45 'table' => env('DB_CACHE_TABLE', 'cache'),
46 'lock_connection' => env('DB_CACHE_LOCK_CONNECTION'),
47 'lock_table' => env('DB_CACHE_LOCK_TABLE'),
48 ],
49
50 'file' => [
51 'driver' => 'file',
52 'path' => storage_path('framework/cache/data'),
53 'lock_path' => storage_path('framework/cache/data'),
54 ],
55
56 'memcached' => [
57 'driver' => 'memcached',
58 'persistent_id' => env('MEMCACHED_PERSISTENT_ID'),
59 'sasl' => [
60 env('MEMCACHED_USERNAME'),
61 env('MEMCACHED_PASSWORD'),
62 ],
63 'options' => [
64 // Memcached::OPT_CONNECT_TIMEOUT => 2000,
65 ],
66 'servers' => [
67 [
68 'host' => env('MEMCACHED_HOST', '127.0.0.1'),
69 'port' => env('MEMCACHED_PORT', 11211),
70 'weight' => 100,
71 ],
72 ],
73 ],
74
75 'redis' => [
76 'driver' => 'redis',
77 'connection' => env('REDIS_CACHE_CONNECTION', 'cache'),
78 'lock_connection' => env('REDIS_CACHE_LOCK_CONNECTION', 'default'),
79 ],
80
81 'dynamodb' => [
82 'driver' => 'dynamodb',
83 'key' => env('AWS_ACCESS_KEY_ID'),
84 'secret' => env('AWS_SECRET_ACCESS_KEY'),
85 'region' => env('AWS_DEFAULT_REGION', 'us-east-1'),
86 'table' => env('DYNAMODB_CACHE_TABLE', 'cache'),
87 'endpoint' => env('DYNAMODB_ENDPOINT'),
88 ],
89
90 'octane' => [
91 'driver' => 'octane',
92 ],
93
94 'failover' => [
95 'driver' => 'failover',
96 'stores' => [
97 'database',
98 'array',
99 ],
100 ],
101
102 ],
103
104 /*
105 |--------------------------------------------------------------------------
106 | Cache Key Prefix
107 |--------------------------------------------------------------------------
108 |
109 | When utilizing the APC, database, memcached, Redis, and DynamoDB cache
110 | stores, there might be other applications using the same cache. For
111 | that reason, you may prefix every cache key to avoid collisions.
112 |
113 */
114
115 'prefix' => env('CACHE_PREFIX', Str::slug((string) env('APP_NAME', 'laravel')).'-cache-'),
116
117];