Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including connect-hazelcast with all npm packages installed. Try it out:

var connectHazelcast = require("connect-hazelcast")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

connect-hazelcast v1.1.0

Hazelcast session store for Connect and Express

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

    store: new HazelcastStore(options),
    secret: 'ssshhh'


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
RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free