koa-session-memory
koa-session memory store
Last updated 5 months ago by kalvin .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install koa-session-memory 
SYNC missed versions from official npm registry.

koa-session-memory

Basic memory storage for koa-session

Installation

Install with npm install koa-session-memory

Additional features

This store emits a changed event every time a session is changed, containing:

{
  key,
  session,
}

Usage

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);

Coffee contributions accepted ;)

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!

Current Tags

  • 1.0.4                                ...           latest (5 months ago)

5 Versions

  • 1.0.4                                ...           5 months ago
  • 1.0.3                                ...           7 months ago
  • 1.0.2                                ...           3 years ago
  • 1.0.1                                ...           3 years ago
  • 1.0.0                                ...           3 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 9
Last Day 0
Last Week 5
Last Month 3
Dependencies (1)
Dev Dependencies (1)

Copyright 2014 - 2017 © taobao.org |