1 | <?php |
||
2 | |||
3 | return [ |
||
4 | /* |
||
5 | |-------------------------------------------------------------------------- |
||
6 | | Default Cache Store |
||
7 | |-------------------------------------------------------------------------- |
||
8 | | |
||
9 | | This option controls the default cache connection that gets used while |
||
10 | | using this caching library. This connection is used when another is |
||
11 | | not explicitly specified when executing a given caching function. |
||
12 | | |
||
13 | | Supported: "apc", "array", "database", "file", "memcached", "redis" |
||
14 | | |
||
15 | */ |
||
16 | |||
17 | 'default' => env('CACHE_DRIVER', 'file'), |
||
18 | |||
19 | /* |
||
20 | |-------------------------------------------------------------------------- |
||
21 | | Cache Stores |
||
22 | |-------------------------------------------------------------------------- |
||
23 | | |
||
24 | | Here you may define all of the cache "stores" for your application as |
||
25 | | well as their drivers. You may even define multiple stores for the |
||
26 | | same cache driver to group types of items stored in your caches. |
||
27 | | |
||
28 | */ |
||
29 | |||
30 | 'stores' => [ |
||
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/data'), |
||
48 | ], |
||
49 | |||
50 | 'memcached' => [ |
||
51 | 'driver' => 'memcached', |
||
52 | 'persistent_id' => env('MEMCACHED_PERSISTENT_ID'), |
||
53 | 'sasl' => [ |
||
54 | env('MEMCACHED_USERNAME'), |
||
55 | env('MEMCACHED_PASSWORD'), |
||
56 | ], |
||
57 | 'options' => [ |
||
58 | // Memcached::OPT_CONNECT_TIMEOUT => 2000, |
||
59 | ], |
||
60 | 'servers' => [ |
||
61 | [ |
||
62 | 'host' => env('MEMCACHED_HOST', '127.0.0.1'), |
||
63 | 'port' => env('MEMCACHED_PORT', 11211), |
||
64 | 'weight' => 100, |
||
65 | ], |
||
66 | ], |
||
67 | ], |
||
68 | |||
69 | 'redis' => [ |
||
70 | 'driver' => 'redis', |
||
71 | 'connection' => 'default', |
||
72 | ], |
||
73 | ], |
||
74 | |||
75 | /* |
||
76 | |-------------------------------------------------------------------------- |
||
77 | | Cache Key Prefix |
||
78 | |-------------------------------------------------------------------------- |
||
79 | | |
||
80 | | When utilizing a RAM based store such as APC or Memcached, there might |
||
81 | | be other applications utilizing the same cache. So, we'll specify a |
||
82 | | value to get prefixed to all our keys so we can avoid collisions. |
||
83 | | |
||
84 | */ |
||
85 | |||
86 | 'prefix' => env( |
||
87 | 'CACHE_PREFIX', |
||
88 | str_slug(env('APP_NAME', 'laravel'), '_').'_cache' |
||
0 ignored issues
–
show
|
|||
89 | ), |
||
90 | ]; |
||
91 |
This function has been deprecated. The supplier of the function has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the function will be removed and what other function to use instead.