New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

connect-aerospike2

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

connect-aerospike2

Aerospike session store for Connect

  • 0.0.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
Maintainers
1
Weekly downloads
 
Created
Source

Connect Aerospike

connect-aerospike is an Aerospike session store backed by aerospike-client-nodejs.

Installation

$ npm install connect-aerospike2

connect-aerospike was already taken. I didn't check before writing this one. They're pretty much the same except the current connect-aerospike (as of this commit) has some console.log statements in it and no docs on namespace and set settings (although it supports it)

A note for Express 3.x users

Use express-session instead of the default connect session middleware.

$ npm install express-session

Options

An Aerospike client is required. An existing client can be passed directly using the client param or make a new one with hosts or host/port.

  • client A configured, but not connected, aerospike client
  • hosts A list of Aerospike server [{addr:'127.0.0.1',port:3000}]
  • host A single Aerospike host (def: 127.0.0.1)
  • port A single Aerospike port for the host (def: 3000)

The following additional params may be included:

  • ttl Aerospike session TTL (expiration) in seconds (def: 86400)
  • ns Namespace to use (def: store_session)
  • set Set to use (def: session)
  • prefix Key prefix defaulting to "sess:"

Usage

Pass the express-session store into connect-aerospike to create a AerospikeStore constructor.

var session = require('express-session');
var RedisStore = require('connect-aerospike2')(session);

app.use(session({
    store: new AerospikeStore(options),
    secret: 'keyboard cat'
}));

License

MIT

FAQs

Package last updated on 27 Apr 2015

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