Skip to content
This repository has been archived by the owner on Jan 24, 2023. It is now read-only.
/ koa-hazelcast Public archive

🐯 Hazelcast storage for koa generic session middleware

License

Notifications You must be signed in to change notification settings

zemd/koa-hazelcast

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

koa-hazelcast

Hazelcast storage for koa generic session middleware based on(hazelcast/hazelcast-nodejs-client#160)

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

About

🐯 Hazelcast storage for koa generic session middleware

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published