cache.js 442 B

1234567891011121314151617
  1. export default {
  2. type: 'file', //缓存类型
  3. timeout: 6 * 3600, //失效时间,单位:秒
  4. adapter: { //不同 adapter 下的配置
  5. file: {
  6. path: think.RUNTIME_PATH + '/cache', //缓存文件的根目录
  7. path_depth: 2, //缓存文件生成子目录的深度
  8. file_ext: '.json' //缓存文件的扩展名
  9. },
  10. redis: {
  11. prefix: 'nideshop_'
  12. },
  13. memcache: {
  14. prefix: 'nideshop_'
  15. }
  16. }
  17. };