mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-11-02 21:10:30 +00:00
21 lines
427 B
TypeScript
21 lines
427 B
TypeScript
import * as Koa from "koa";
|
|
import { MemoryStore, Session } from "koa-generic-session";
|
|
import session = require("koa-generic-session");
|
|
import redisStore = require("koa-redis");
|
|
|
|
const app = new Koa();
|
|
|
|
app.use(session({
|
|
store: redisStore({
|
|
url: 'redis://url:123',
|
|
host: 'redisHost',
|
|
port: 123,
|
|
path: 'redis/path',
|
|
db: '2',
|
|
duplicate: false,
|
|
client: {}
|
|
})
|
|
}));
|
|
|
|
app.listen(80);
|