mirror of
https://github.com/thinkjs/thinkjs.git
synced 2026-01-18 14:26:56 +00:00
24 lines
355 B
JavaScript
24 lines
355 B
JavaScript
'use strict';
|
|
|
|
import path from 'path';
|
|
|
|
/**
|
|
* cache configs
|
|
*/
|
|
export default {
|
|
type: 'file', //cache type
|
|
timeout: 6 * 3600, //6 hours
|
|
adapter: {
|
|
file: {
|
|
path: think.RUNTIME_PATH + path.sep + 'cache',
|
|
path_depth: 2,
|
|
file_ext: '.json'
|
|
},
|
|
redis: {
|
|
prefix: ''
|
|
},
|
|
memcache: {
|
|
prefix: ''
|
|
}
|
|
}
|
|
}; |