2017-06-09 02:28:26 +08:00
|
|
|
<?php
|
|
|
|
|
|
|
|
return [
|
|
|
|
|
|
|
|
'default' => env('CACHE_DRIVER', 'file'),
|
2017-07-05 04:43:47 +08:00
|
|
|
'prefix' => env('CACHE_PREFIX', ''),
|
2017-06-09 02:28:26 +08:00
|
|
|
|
2017-07-05 04:43:47 +08:00
|
|
|
'keys' => [
|
2017-12-08 07:44:05 +08:00
|
|
|
'AIRPORT_VACENTRAL_LOOKUP' => [
|
|
|
|
'key' => 'airports:lookup:',
|
2017-12-12 12:05:22 +08:00
|
|
|
'time' => 60 * 30,
|
2017-12-08 07:44:05 +08:00
|
|
|
],
|
2017-07-05 04:43:47 +08:00
|
|
|
'RANKS_PILOT_LIST' => [
|
2017-07-05 05:45:49 +08:00
|
|
|
'key' => 'ranks:pilot_list',
|
2017-12-12 12:05:22 +08:00
|
|
|
'time' => 60 * 10,
|
|
|
|
],
|
|
|
|
'USER_API_KEY' => [
|
|
|
|
'key' => 'user:apikey',
|
|
|
|
'time' => 60 * 5, // 5 min
|
|
|
|
],
|
2017-07-05 04:43:47 +08:00
|
|
|
],
|
2017-06-09 02:28:26 +08:00
|
|
|
|
|
|
|
'stores' => [
|
|
|
|
|
2017-07-05 04:43:47 +08:00
|
|
|
'apc' => ['driver' => 'apc'],
|
|
|
|
'array' => ['driver' => 'array'],
|
2017-06-09 02:28:26 +08:00
|
|
|
'database' => [
|
|
|
|
'driver' => 'database',
|
|
|
|
'table' => 'cache',
|
|
|
|
'connection' => null,
|
|
|
|
],
|
|
|
|
|
|
|
|
'file' => [
|
|
|
|
'driver' => 'file',
|
|
|
|
'path' => storage_path('framework/cache'),
|
|
|
|
],
|
|
|
|
|
|
|
|
'memcached' => [
|
|
|
|
'driver' => 'memcached',
|
|
|
|
'persistent_id' => env('MEMCACHED_PERSISTENT_ID'),
|
|
|
|
'sasl' => [
|
|
|
|
env('MEMCACHED_USERNAME'),
|
|
|
|
env('MEMCACHED_PASSWORD'),
|
|
|
|
],
|
|
|
|
'options' => [
|
|
|
|
// Memcached::OPT_CONNECT_TIMEOUT => 2000,
|
|
|
|
],
|
|
|
|
'servers' => [
|
|
|
|
[
|
|
|
|
'host' => env('MEMCACHED_HOST', '127.0.0.1'),
|
|
|
|
'port' => env('MEMCACHED_PORT', 11211),
|
|
|
|
'weight' => 100,
|
|
|
|
],
|
|
|
|
],
|
|
|
|
],
|
|
|
|
|
|
|
|
'redis' => [
|
|
|
|
'driver' => 'redis',
|
|
|
|
'connection' => 'default',
|
|
|
|
],
|
|
|
|
|
|
|
|
],
|
|
|
|
];
|