prismy-session-redis
v0.0.1-0
Published
Session storage for prismy-session
Downloads
4
Readme
prismy-session-redis
Session storage for prismy-session
npm i prismy-session prismy-session-redis
import { prismy, JsonBody, After } from 'prismy'
import { createSessionMiddleware, Session } from 'prismy-session'
import MemoryStore from 'prismy-session/MemoryStore'
const sessionMiddleware = createSessionMiddleware({
store: new MemoryStore(),
secret: 'yolo'
})
export class MyHandler {
async execute(@Session session: SessionStore) {
session.get() as any
session.set()
}
}
export default prismy([sessionMiddleware, MyHandler])