connect-hazelcast

1.3.0 • Public • Published

Build Status

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

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

The following list contains all supported options:

  • client An existing hazelcast client. Required option.
  • prefix IMap name to use for storing sessions. Defaults to sessions.
  • ttl Default TTL in seconds to use when the session cookie does not have a expires value. Defaults to 86400 (one day).
  • disableTouch When set to true, TTL is reset on each user interaction with the server. Defaults to false.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.3.0
    13
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.3.0
    13
  • 1.2.0
    6
  • 1.1.1
    0
  • 1.1.0
    0
  • 1.0.0
    0

Package Sidebar

Install

npm i connect-hazelcast

Weekly Downloads

19

Version

1.3.0

License

ISC

Unpacked Size

5.63 kB

Total Files

7

Last publish

Collaborators

  • huseyinbabal