koajs / koa-redis

Redis storage for Koa session middleware/cache with Sentinel and Cluster support
MIT License
353 stars 40 forks source link

About koa2 #29

Closed fwh1990 closed 7 years ago

fwh1990 commented 7 years ago

Hi,guys.Do you have any plan to support koa2? I can't use this plugin with koa-generic-session in koa2. The code looks like:

const convert = require('koa-convert'); const session = require('koa-generic-session'); const RedisStore = require('koa-redis');

app.use(convert(session({ store: new RedisStore(), })));

How to do now? thanks very much.

DaAwesomeP commented 7 years ago

There is a pull open to upgrade to Koa 2, but there are some issues with the pull: https://github.com/koajs/koa-redis/pull/28