MCPcopy Create free account
hub / github.com/ember-cli/ember-cli / setItem

Function setItem

lib/models/addon.js:106–111  ·  view source on GitHub ↗
(key, value)

Source from the content-addressed store, hash-verified

104 },
105
106 setItem(key, value) {
107 let hasValue = !!value;
108 heimdall.statsFor('addon-tree-cache').adds++;
109 treeCacheLogger.info(`Cache Add: ${key} - ${hasValue}`);
110 this.__cache[key] = value;
111 },
112
113 clear() {
114 this.__cache = Object.create(null);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…