redis-doc icon indicating copy to clipboard operation
redis-doc copied to clipboard

Node.js guide Get Returing only true and hSet is not an function

Open eduboardio opened this issue 2 years ago • 0 comments

await Redisclient.set('key', 'value'); const value = await Redisclient.get('key'); await Redisclient.hSet('user-session:123', { name: 'John', surname: 'Smith', company: 'Redis', age: 29 })

let userSession = await Redisclient.hGetAll('user-session:123'); console.log(JSON.stringify(userSession, null, 2)); res.send(value);

eduboardio avatar Jan 21 '24 09:01 eduboardio