Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
eduboardio opened this issue Jan 21, 2024 · 0 comments
Open

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

eduboardio opened this issue Jan 21, 2024 · 0 comments

Comments

@eduboardio
Copy link

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);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant