MCPcopy Create free account
hub / github.com/dadi/api / Cache

Function Cache

dadi/lib/cache/index.js:15–24  ·  view source on GitHub ↗
(server)

Source from the content-addressed store, hash-verified

13let cache
14
15const 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
26let instance
27

Callers

nothing calls this directly

Calls 1

getMethod · 0.80

Tested by

no test coverage detected