Hazelcast storage for koa generic session middleware based on(hazelcast/hazelcast-nodejs-client#160)
npm install koa-hazelcast --save
or
yarn add koa-hazelcast
const Koa = require("koa");
const session = require("koa-generic-session");
const convert = require("koa-convert");
const HazelcastStore = require("koa-hazelcast");
const app = new Koa();
app.use(convert(session({
store: new HazelcastStore({
ttl: 86400000 // ttl must be set in milliseconds
})
})));
koa-hazelcast is released under the MIT license.