MCPcopy
hub / github.com/chartbrew/chartbrew / zincrby

Method zincrby

server/modules/runtimeCache.js:214–220  ·  view source on GitHub ↗
(key, increment, member)

Source from the content-addressed store, hash-verified

212 }
213
214 async zincrby(key, increment, member) {
215 const sortedSet = this.sortedSets.get(key) || new Map();
216 const nextScore = (sortedSet.get(member) || 0) + Number(increment);
217 sortedSet.set(member, nextScore);
218 this.sortedSets.set(key, sortedSet);
219 return nextScore;
220 }
221
222 async zrevrange(key, start, end) {
223 const sortedSet = this.sortedSets.get(key);

Callers 4

createMemoryStoreFunction · 0.95
createRedisStoreFunction · 0.95
attachClientFunction · 0.80

Calls 2

getMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected