MCPcopy
hub / github.com/chartbrew/chartbrew / set

Method set

server/modules/runtimeCache.js:144–150  ·  view source on GitHub ↗
(key, value, ttlMs = 0)

Source from the content-addressed store, hash-verified

142 }
143
144 async set(key, value, ttlMs = 0) {
145 this.values.set(key, {
146 value,
147 expiresAt: ttlMs > 0 ? Date.now() + ttlMs : null,
148 });
149 return "OK";
150 }
151
152 async del(key) {
153 this.values.delete(key);

Callers 15

createMemoryStoreFunction · 0.95
createRedisStoreFunction · 0.95
createStorageFunction · 0.45
onMethod · 0.45
_onChangeTabFunction · 0.45
chart.jsFile · 0.45
getAiUsageFunction · 0.45
index.jsFile · 0.45
hsetMethod · 0.45
zincrbyMethod · 0.45
attachClientFunction · 0.45
setCacheEntryMethod · 0.45

Calls

no outgoing calls

Tested by 3

createStorageFunction · 0.36
getFunction · 0.36
registerFunction · 0.36