-
Notifications
You must be signed in to change notification settings - Fork 115
Open
Description
I've gotten myself confused about how to properly manage sessions with redis and koa:
- There are two projects,
koa-sessionandkoa-generic-session. They are both recently updated and neither mentions the other. - The README for
koa-sessiondoes not recommend any external session stores, the README forkoa-generic-sessionmentionskoa-redis. - When attempting to use
@types/koa-generic-session,@types/koa-session, and@types/koa-redisit appears thatkoa-redisIS compatible withkoa-session, but IS NOT compatible withkoa-generic-session. - The README for
koa-sessionspecifies that a store should haveget(key, maxAge, { rolling, ctx }), butkoa-redishasget(key)(no second or third parameters). - The README for
koa-sessionspecifies that a store should haveset(key, sess, maxAge, { rolling, changed, ctx }),koa-redishasset(sid, sess, ttl)(no fourth parameter). - The README for
koa-sessionspecifies that a store should havedestroy(key, {ctx}).koa-redishasdestroy(sid)(no second parameter). - Upon initial trial, it appears (on the surface) that
koa-sessionworks withkoa-redis, though I fear this may be a coincidence.
Are the typings incorrect? Is koa-redis only meant to be used with koa-generic-session? Or can koa-redis be used with koa-session? What is the recommended method for managing sessions with koa and redis?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels