(server)
| 13 | let cache |
| 14 | |
| 15 | const Cache = function(server) { |
| 16 | this.cache = cache = new DadiCache(config.get('caching')) |
| 17 | |
| 18 | this.server = server |
| 19 | this.enabled = |
| 20 | config.get('caching.directory.enabled') || |
| 21 | config.get('caching.redis.enabled') |
| 22 | this.encoding = 'utf8' |
| 23 | this.options = {} |
| 24 | } |
| 25 | |
| 26 | let instance |
| 27 |