koa-session-redis-store
This is a redis store module for koa-session.
It can be used like this:
const session = ;const RedisStore = ;const Koa = ;const app = ; appkeys = 'some secret hurr'; const CONFIG = store: // The others options for koa-session; app; app; app;
Install
$ npm install koa-session-redis-store
API
Constructor
const redisStore = opts;
opts: The options that will be passed to redis client(node_redis).
Events
It could catch the events from where redis client.
redisStore; redisStore; redisStore; redisStore; redisStore; redisStore;
Close connection
Close function is executed as asynchrous by using bluebird.
redisStore // It allows to use the bluebird api;
or also can be called using async/await.
const close = async { const result = await redisStore; console;};
License
MIT