phpvms/config/cache.php

60 lines
1.4 KiB
PHP
Raw Normal View History

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' => [
'AIRPORT_VACENTRAL_LOOKUP' => [
'key' => 'airports:lookup:',
'time' => 1800,
],
2017-07-05 04:43:47 +08:00
'RANKS_PILOT_LIST' => [
2017-07-05 05:45:49 +08:00
'key' => 'ranks:pilot_list',
'time' => 600,
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',
],
],
];