MCPcopy Index your code
hub / github.com/chartbrew/chartbrew / hgetall

Method hgetall

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

Source from the content-addressed store, hash-verified

197 }
198
199 async hgetall(key) {
200 const hash = this.hashes.get(key);
201 if (!hash) return {};
202
203 return Array.from(hash.entries()).reduce((acc, [field, value]) => {
204 acc[field] = value;
205 return acc;
206 }, {});
207 }
208
209 async zscore(key, member) {
210 const sortedSet = this.sortedSets.get(key);

Callers 4

createMemoryStoreFunction · 0.95
createRedisStoreFunction · 0.95
attachClientFunction · 0.80

Calls 1

getMethod · 0.45

Tested by

no test coverage detected