You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I've failed to assess whether get does parse JSON or not from the docs:
async function getSession(sessionId: string) {
const redis = getRedis();
const maybeSession = (await redis.get(getSessionKey(sessionId))) as
| string
| null;
if (!maybeSession) {
// first input
return null;
}
// "JSON.parse" here will raise an error as you can't parse again a JSON object
return sessionSchema.parse(maybeSession);
}
The set method doc is more explicit about the fact that it handles the JSON.stringify call if it receives an object.
The text was updated successfully, but these errors were encountered:
Path: /redis/sdks/py/commands/string/get
Hi, I've failed to assess whether get does parse JSON or not from the docs:
The set method doc is more explicit about the fact that it handles the JSON.stringify call if it receives an object.
The text was updated successfully, but these errors were encountered: