MCPcopy Create free account
hub / github.com/pgadmin-org/pgadmin4 / setCache

Method setCache

web/pgadmin/tools/erd/static/js/erd_tool/ERDCore.js:154–163  ·  view source on GitHub ↗
(data, value)

Source from the content-addressed store, hash-verified

152 }
153
154 setCache(data, value) {
155 if(typeof(data) == 'string') {
156 this._cache[data] = value;
157 } else {
158 this._cache = {
159 ...this._cache,
160 ...data,
161 };
162 }
163 }
164
165 getCache(key) {
166 return key ? this._cache[key]: this._cache;

Callers 2

loadPrequisiteDataMethod · 0.80
erd_core_spec.jsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected