]> BookStack Code Mirror - bookstack/blob - config/cache.php
Closes #69. Implemented and tested memcached.
[bookstack] / config / cache.php
1 <?php
2
3 return [
4
5     /*
6     |--------------------------------------------------------------------------
7     | Default Cache Store
8     |--------------------------------------------------------------------------
9     |
10     | This option controls the default cache connection that gets used while
11     | using this caching library. This connection is used when another is
12     | not explicitly specified when executing a given caching function.
13     |
14     */
15
16     'default' => env('CACHE_DRIVER', 'file'),
17
18     /*
19     |--------------------------------------------------------------------------
20     | Cache Stores
21     |--------------------------------------------------------------------------
22     |
23     | Here you may define all of the cache "stores" for your application as
24     | well as their drivers. You may even define multiple stores for the
25     | same cache driver to group types of items stored in your caches.
26     |
27     */
28
29     'stores' => [
30
31         'apc' => [
32             'driver' => 'apc',
33         ],
34
35         'array' => [
36             'driver' => 'array',
37         ],
38
39         'database' => [
40             'driver' => 'database',
41             'table'  => 'cache',
42             'connection' => null,
43         ],
44
45         'file' => [
46             'driver' => 'file',
47             'path'   => storage_path('framework/cache'),
48         ],
49
50         'memcached' => [
51             'driver'  => 'memcached',
52             'servers' => [
53                 [
54                     'host' => env('MEMCACHED_HOST', '127.0.0.1'),
55                     'port' => env('MEMCACHED_PORT', 11211),
56                     'weight' => 100,
57                 ],
58             ],
59         ],
60
61         'redis' => [
62             'driver' => 'redis',
63             'connection' => 'default',
64         ],
65
66     ],
67
68     /*
69     |--------------------------------------------------------------------------
70     | Cache Key Prefix
71     |--------------------------------------------------------------------------
72     |
73     | When utilizing a RAM based store such as APC or Memcached, there might
74     | be other applications utilizing the same cache. So, we'll specify a
75     | value to get prefixed to all our keys so we can avoid collisions.
76     |
77     */
78
79     'prefix' => 'laravel',
80
81 ];