Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

express-session-cache-manager

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

express-session-cache-manager

express session support using node-cache-manager

  • 1.0.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
28
increased by55.56%
Maintainers
1
Weekly downloads
 
Created
Source

express-session-cache-manager

js-standard-style Build Status npm version

express-session support using node-cache-manager, which supports a variety of storage engines.

Installation

npm i express-session-cache-manager --save

Usage

import express from 'express'
import session from 'express-session'
import cacheManager from 'cache-manager'
import CacheManagerStore from 'express-session-cache-manager'

// Replace with your cache-manager specific store engine here
import memoryStoreEngine from 'cache-manager-memory-store'

const app = express()

const sessionMiddleware = session({
  store: new CacheManagerStore(cacheManager.caching({
    store: memoryStoreEngine
  }))
})

app.use(sessionMiddleware)

Extended logging

The debug module is used to provide debug information.

Enable the following environment variable to see them:

DEBUG=session-cache-manager

Acknowledgements

Keywords

FAQs

Package last updated on 02 May 2017

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc