Can you save nested objects in redis?
I'm using the node.js driver. One of my key-values is an array of objects. If I dont stringify it results in the string "[object Object]" if i stringify it I get this error:
{
stack: [Getter/Setter],
arguments: undefined,
type: undefined,
message: 'ERR wrong number of arguments for \'hmset\' command'
}
stringifying json is not the right way of using redis. you should generate your own redis hashsets
user:ejder name ejder user:ejder:details:0 age 32 user:ejder:details:1 age 25 (i wish)
that way you can query your data redis-way. Stringifying json is nothing but saving a string and if you use large datasets it will decrease the performance very bad
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With