MCPcopy
hub / github.com/Unitech/pm2 / get

Method get

modules/pm2-io-agent/src/Utility.js:75–86  ·  view source on GitHub ↗

* Get a value from the cache * * @param {String} key

(key)

Source from the content-addressed store, hash-verified

73 * @param {String} key
74 */
75 get (key) {
76 if (!key) return null
77 let value = this._cache[key]
78 if (value) return value
79
80 value = this._miss(key)
81
82 if (value) {
83 this.set(key, value)
84 }
85 return value
86 }
87
88 /**
89 * Set a value in the cache

Callers 15

ReqSocketFunction · 0.45
sock.jsFile · 0.45
configurable.jsFile · 0.45
cache.mocha.jsFile · 0.45
parseMethod · 0.45
_bindEventsMethod · 0.45
_onPM2EventMethod · 0.45
Worker.jsFile · 0.45
Configuration.jsFile · 0.45
_loginUserMethod · 0.45

Calls 1

setMethod · 0.95

Tested by

no test coverage detected