// +---------------------------------------------------------------------- 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, ], ];