0
|
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' => '127.0.0.1', 'port' => 11211, 'weight' => 100 |
|
55 |
], |
|
56 |
], |
|
57 |
], |
|
58 |
|
|
59 |
'redis' => [ |
|
60 |
'driver' => 'redis', |
|
61 |
'connection' => 'default', |
|
62 |
], |
|
63 |
|
|
64 |
], |
|
65 |
|
|
66 |
/* |
|
67 |
|-------------------------------------------------------------------------- |
|
68 |
| Cache Key Prefix |
|
69 |
|-------------------------------------------------------------------------- |
|
70 |
| |
|
71 |
| When utilizing a RAM based store such as APC or Memcached, there might |
|
72 |
| be other applications utilizing the same cache. So, we'll specify a |
|
73 |
| value to get prefixed to all our keys so we can avoid collisions. |
|
74 |
| |
|
75 |
*/ |
|
76 |
|
|
77 |
'prefix' => 'laravel', |
|
78 |
|
|
79 |
]; |