Skip to content

lonord/koa2-session-redis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

koa2-session-redis

A simple redis store of koa-session

Installation

$ npm install koa2-session-redis

Example

Simple example.

const session = require('koa-session');
const RedisStore = require('koa2-session-redis');
const Koa = require('koa');
const app = new Koa();
//...
const CONFIG = {
  /* other options */
  store: new RedisStore()
};
app.use(session(CONFIG, app));
//...

API

RedisStore#constructor(config)

config The config argument passed to createClient(config) of node_redis

License

MIT

About

A simple redis store of koa-session

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published