koa-hazelcast

1.0.0 • Public • Published

koa-hazelcast

Hazelcast storage for koa generic session middleware

CAUTION

Work in progress! This package requires ReplicatedMap support that has not been implemented yet. check out

Installation

npm install koa-hazelcast --save

or

yarn add koa-hazelcast

Usage

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

License

koa-hazelcast is released under the MIT license.

Donate

Package Sidebar

Install

npm i koa-hazelcast

Weekly Downloads

1

Version

1.0.0

License

MIT

Last publish

Collaborators

  • hunterman