Hono session caching
Following the doc its recommended to cache sessions client and server side. Client is simple.
I implemented server side caching on my Hono server as seen in the screenshot. As I understand this is the recommended way.
Q: But doesn't this also make a request on every api request? Or do I need to guard the getSession request using
But if a user is set like this, would this result in having a invalid session saved, therefore breaking my check?
I implemented server side caching on my Hono server as seen in the screenshot. As I understand this is the recommended way.
Q: But doesn't this also make a request on every api request? Or do I need to guard the getSession request using
if (!c.get("session") || !c.get("user")?But if a user is set like this, would this result in having a invalid session saved, therefore breaking my check?
