MCPcopy
hub / github.com/redis/node-redis / pushObject

Function pushObject

packages/client/lib/commands/HSET.ts:61–68  ·  view source on GitHub ↗
(parser: CommandParser, object: HSETObject)

Source from the content-addressed store, hash-verified

59}
60
61function pushObject(parser: CommandParser, object: HSETObject): void {
62 for (const key of Object.keys(object)) {
63 parser.push(
64 convertValue(key),
65 convertValue(object[key])
66 );
67 }
68}
69
70function convertValue(value: HashTypes): RedisArgument {
71 return typeof value === 'number' ?

Callers 1

parseCommandFunction · 0.70

Calls 3

keysMethod · 0.80
convertValueFunction · 0.70
pushMethod · 0.45

Tested by

no test coverage detected