]> BookStack Code Mirror - bookstack/blob - app/Config/cache.php
Reverted shift change to old migration
[bookstack] / app / Config / cache.php
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'),
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' => env('CACHE_DRIVER') === 'memcached' ? $memcachedServers : [],
68         ],
69
70         'redis' => [
71             'driver'          => 'redis',
72             'connection'      => 'default',
73             'lock_connection' => 'default',
74         ],
75
76         'dynamodb' => [
77             'driver'   => 'dynamodb',
78             'key'      => env('AWS_ACCESS_KEY_ID'),
79             'secret'   => env('AWS_SECRET_ACCESS_KEY'),
80             'region'   => env('AWS_DEFAULT_REGION', 'us-east-1'),
81             'table'    => env('DYNAMODB_CACHE_TABLE', 'cache'),
82             'endpoint' => env('DYNAMODB_ENDPOINT'),
83         ],
84
85         'octane' => [
86             'driver' => 'octane',
87         ],
88
89     ],
90
91     /*
92     |--------------------------------------------------------------------------
93     | Cache Key Prefix
94     |--------------------------------------------------------------------------
95     |
96     | When utilizing a RAM based store such as APC or Memcached, there might
97     | be other applications utilizing the same cache. So, we'll specify a
98     | value to get prefixed to all our keys so we can avoid collisions.
99     |
100     */
101
102     'prefix' => env('CACHE_PREFIX', Str::slug(env('APP_NAME', 'laravel'), '_') . '_cache'),
103
104 ];