mirror of
https://github.com/crmeb/CRMEB.git
synced 2025-12-13 03:32:48 +00:00
39 lines
1.4 KiB
PHP
39 lines
1.4 KiB
PHP
<?php
|
|
// +----------------------------------------------------------------------
|
|
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
|
|
// +----------------------------------------------------------------------
|
|
// | Copyright (c) 2006~2016 http://thinkphp.cn All rights reserved.
|
|
// +----------------------------------------------------------------------
|
|
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
|
|
// +----------------------------------------------------------------------
|
|
// | Author: liu21st <liu21st@gmail.com>
|
|
// +----------------------------------------------------------------------
|
|
|
|
|
|
return [
|
|
'session' => [
|
|
// SESSION 前缀
|
|
'prefix' => 'ebapi',
|
|
// 驱动方式 支持redis memcache memcached
|
|
'type' => '',
|
|
// 是否自动开启 SESSION
|
|
'auto_start' => true,
|
|
],
|
|
'exception_handle' => \app\ebapi\controller\ApiException::class,
|
|
|
|
// +----------------------------------------------------------------------
|
|
// | 缓存设置
|
|
// +----------------------------------------------------------------------
|
|
|
|
'cache' => [
|
|
// 驱动方式
|
|
'type' => 'File',
|
|
// 缓存保存目录
|
|
'path' => CACHE_PATH,
|
|
// 缓存前缀
|
|
'prefix' => 'ebapi',
|
|
// 缓存有效期 0表示永久缓存
|
|
'expire' => 1400,
|
|
],
|
|
];
|