Is it not possible to store an array of objects or a list of objects via Redis 5.0?
I can only make it work - if I first convert the array/list to JSON-format like this:
redis.set('persons', JSON.stringify(array_of_persons)
const persons = JSON.parse(await redis.get('persons'));
OR
redis.hset('my_list', 'persons', JSON.stringify(array_of_persons));
const persons = JSON.parse(await redis.hget('my_list', 'persons'));
But there is a lot of overhead to continuously stringify/parse big collections in javascript when I need to add/update/remove objects from the collections - so how do I performance optimize this code - if it can't be done in a more "native" way in Redis v. 5.0?