MCPcopy Create free account
hub / github.com/RisingStack/trace-nodejs / Cache

Function Cache

lib/agent/tracer/cache.js:4–8  ·  view source on GitHub ↗
(options)

Source from the content-addressed store, hash-verified

2var levels = require('./severity')
3
4function Cache (options) {
5 this.mustCollectSeverity = options && options.mustCollectSeverity
6 this.root = createNode()
7 this.ttl = (options && options.ttl) || 30 * 1000
8}
9
10function forEachPath (node, path, f) {
11 var i = path.length - 1

Callers

nothing calls this directly

Calls 1

createNodeFunction · 0.85

Tested by

no test coverage detected