Created
January 22, 2023 12:57
-
-
Save Prosen-Ghosh/c587f87822981ecd44768c9d8f9badeb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const Redis = require("ioredis"); | |
const redis = new Redis(); | |
redis.get("session:user1").then(sessionData => { | |
console.log(JSON.parse(sessionData)); | |
// Output: { username: "user1", email: "user1@example.com" } | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment