npm

Need private packages and team management tools?Check out npm Orgs. »

connect-hazelcast

1.1.0 • Public • Published

Build Status

connect-hazelcast is a Hazelcast session store backed by Hazelcast.

Quick Setup

npm install connect-hazelcast express-session

Pass the express-session to connect-hazelcast to create a HazelcastStore constructor.

const session = require('express-session');
const HazelcastStore = require('connect-hazelcast')(session);
 
app.use(session({
    store: new HazelcastStore(options),
    secret: 'ssshhh'
}));

Options

You can pass hazelcast client directly if you have an existing one, or else see the following options to use;

  • client An existing hazelcast client
  • members Hazelcast cluster members in a format [{host: "address1", port: "port1", host: "address2", port: "port2"}]
  • discoveryEnabled If you want to use Hazelcast Cloud, you can set this one as true
  • token If you are using Hazelcast Cloud, you can pass token as described here
  • groupName Name of hazelcast cluster
  • groupPassword Password of hazelcast cluster

install

npm i connect-hazelcast

Downloadsweekly downloads

6

version

1.1.0

license

ISC

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability