MCPcopy Index your code
hub / github.com/scriptscat/scriptcat / set

Method set

src/app/cache.ts:147–150  ·  view source on GitHub ↗
(newVal: T)

Source from the content-addressed store, hash-verified

145 let ret: Awaited<ReturnType<CB>>;
146 const act = { action: Actions.NONE } as { action?: number; newVal?: T };
147 const set = (newVal: T) => {
148 act.action = Actions.SET;
149 act.newVal = newVal;
150 };
151 const del = () => {
152 act.action = Actions.DEL;
153 act.newVal = undefined;

Callers 2

getOrSetMethod · 0.95
txMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected