Basic memory storage for koa-session
Install with npm install koa-session-memory
This store emits a changed
event every time a session is changed, containing:
{
key,
session,
}
const Koa = require('koa');
const MemoryStore = require('koa-session-memory');
const session = require('koa-session');
const app = new Koa();
const store = new MemoryStore();
app.keys = [ 'put your session secret here' ];
app.use(session({
store,
key: 'koa:sess',
maxAge: 86400000,
}), app);
As you may know developers fuel is coffee.
Now that Github enabled BAT Rewards, if you are using Brave Browser and feel that I deserve some coffee you can send me a tip or set a monthly contribution.
If you are still not using Brave Browser, you can download it using this link and I will get some BAT to buy more coffee ;)
Brave Browser is a superfast browser based in Chrome with integrated ad blocking and anti-tracking features. Give it a try!