MCPcopy Index your code
hub / github.com/DeepNotesApp/DeepNotes / hmset

Method hmset

apps/client/src/code/realtime/client.ts:215–225  ·  view source on GitHub ↗
(prefix: DataPrefix_, suffix: string, values: Record<DataField, any>)

Source from the content-addressed store, hash-verified

213 this._hsetBuffer.set(fullKey, value);
214 }
215 hmset<
216 DataPrefix_ extends DataPrefix,
217 DataField extends Extract<
218 keyof (typeof dataHashes)[DataPrefix_]['fields'],
219 string
220 > = Extract<keyof (typeof dataHashes)[DataPrefix_]['fields'], string>,
221 >(prefix: DataPrefix_, suffix: string, values: Record<DataField, any>) {
222 for (const [field, value] of Object.entries<any>(values)) {
223 this.hset(prefix, suffix, field as DataField, value);
224 }
225 }
226
227 private _flushHSetBuffer = throttle(
228 () => {

Callers 6

addPageBacklinkFunction · 0.45
setJoinRequestsAllowedFunction · 0.45
delete_Function · 0.45
delete_Function · 0.45
_flushHSetBufferMethod · 0.45
handleCommandFunction · 0.45

Calls 1

hsetMethod · 0.80

Tested by

no test coverage detected