Socket
Socket
Sign inDemoInstall

connect-hazelcast

Package Overview
Dependencies
0
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    connect-hazelcast

Hazelcast session store for Connect and Express


Version published
Weekly downloads
14
decreased by-39.13%
Maintainers
1
Install size
5.50 kB
Created
Weekly downloads
 

Readme

Source

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.

Keywords

FAQs

Last updated on 06 Oct 2021

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc