cache.php 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. <?php
  2. // +----------------------------------------------------------------------
  3. // | ThinkAdmin
  4. // +----------------------------------------------------------------------
  5. // | 版权所有 2014~2022 广州楚才信息科技有限公司 [ http://www.cuci.cc ]
  6. // +----------------------------------------------------------------------
  7. // | 官方网站: https://thinkadmin.top
  8. // +----------------------------------------------------------------------
  9. // | 开源协议 ( https://mit-license.org )
  10. // | 免费声明 ( https://thinkadmin.top/disclaimer )
  11. // +----------------------------------------------------------------------
  12. // | gitee 代码仓库:https://gitee.com/zoujingli/ThinkAdmin
  13. // | github 代码仓库:https://github.com/zoujingli/ThinkAdmin
  14. // +----------------------------------------------------------------------
  15. return [
  16. // 默认缓存驱动
  17. 'default' => 'file',
  18. // 缓存连接配置
  19. 'stores' => [
  20. 'file' => [
  21. // 驱动方式
  22. 'type' => 'File',
  23. // 缓存保存目录
  24. 'path' => '',
  25. // 缓存名称前缀
  26. 'prefix' => '',
  27. // 缓存有效期 0 表示永久缓存
  28. 'expire' => 0,
  29. // 缓存标签前缀
  30. 'tag_prefix' => 'tag:',
  31. // 序列化机制
  32. 'serialize' => [],
  33. ],
  34. ],
  35. ];