MCPcopy
hub / github.com/chartbrew/chartbrew / get

Method get

server/modules/runtimeCache.js:132–142  ·  view source on GitHub ↗
(key)

Source from the content-addressed store, hash-verified

130 }
131
132 async get(key) {
133 const entry = this.values.get(key);
134 if (!entry) return null;
135
136 if (entry.expiresAt && entry.expiresAt <= Date.now()) {
137 this.values.delete(key);
138 return null;
139 }
140
141 return entry.value;
142 }
143
144 async set(key, value, ttlMs = 0) {
145 this.values.set(key, {

Callers 15

createMemoryStoreFunction · 0.95
createRedisStoreFunction · 0.95
createStorageFunction · 0.45
ApiConnectionFormFunction · 0.45
SharedChartFunction · 0.45
_onAddFilterFunction · 0.45
_onClearFilterFunction · 0.45
EmbeddedChartFunction · 0.45
_onAddFilterFunction · 0.45
_onClearFilterFunction · 0.45
_onSubmitFunction · 0.45
redirectUserFunction · 0.45

Calls 1

deleteMethod · 0.45

Tested by 3

createStorageFunction · 0.36
getHandlersFunction · 0.36
getHandlersFunction · 0.36