DefinitelyTyped/types/koa2-session-redis/koa2-session-redis-tests.ts
2018-08-24 21:05:48 -07:00

16 lines
302 B
TypeScript

import * as session from 'koa-session';
import * as Koa from 'koa';
import RedisStore = require('koa2-session-redis');
const app = new Koa();
const CONFIG = {
store: new RedisStore({
host: '127.0.0.1',
port: 6379,
max_attempts: 0
})
};
app.use(session(CONFIG, app));