mirror of
				https://gitee.com/zoujingli/ThinkAdmin.git
				synced 2025-11-04 05:32:09 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			37 lines
		
	
	
		
			1.4 KiB
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			37 lines
		
	
	
		
			1.4 KiB
		
	
	
	
		
			PHP
		
	
	
	
	
	
<?php
 | 
						||
 | 
						||
// +----------------------------------------------------------------------
 | 
						||
// | ThinkAdmin
 | 
						||
// +----------------------------------------------------------------------
 | 
						||
// | 版权所有 2014~2020 广州楚才信息科技有限公司 [ http://www.cuci.cc ]
 | 
						||
// +----------------------------------------------------------------------
 | 
						||
// | 官方网站: https://thinkadmin.top
 | 
						||
// +----------------------------------------------------------------------
 | 
						||
// | 开源协议 ( https://mit-license.org )
 | 
						||
// +----------------------------------------------------------------------
 | 
						||
// | gitee 代码仓库:https://gitee.com/zoujingli/ThinkAdmin
 | 
						||
// | github 代码仓库:https://github.com/zoujingli/ThinkAdmin
 | 
						||
// +----------------------------------------------------------------------
 | 
						||
 | 
						||
return [
 | 
						||
    // 默认缓存驱动
 | 
						||
    'default' => 'file',
 | 
						||
    // 缓存连接方式配置
 | 
						||
    'stores'  => [
 | 
						||
        'file' => [
 | 
						||
            // 驱动方式
 | 
						||
            'type'       => 'File',
 | 
						||
            // 缓存保存目录
 | 
						||
            'path'       => app()->getRootPath() . 'runtime' . DIRECTORY_SEPARATOR . 'cache' . DIRECTORY_SEPARATOR,
 | 
						||
            // 缓存名称前缀
 | 
						||
            'prefix'     => '',
 | 
						||
            // 缓存有效期 0 表示永久缓存
 | 
						||
            'expire'     => 0,
 | 
						||
            // 缓存标签前缀
 | 
						||
            'tag_prefix' => 'tag:',
 | 
						||
            // 序列化机制
 | 
						||
            'serialize'  => [],
 | 
						||
        ],
 | 
						||
    ],
 | 
						||
];
 |