0.2.0 • Published 10 months ago

connect-hermod v0.2.0

Weekly downloads
-
License
AGPL-3.0
Repository
-
Last release
10 months ago

Connect-Hermod

Hermod Store for Express-session

An extension for Node.js applications that allows storage of express-sessions on a Hermod In-Memory DBMS.

Installation

npm i connect-hermod

How to set up

// Requiring package  
const session = require("express-session")
const HermodStore = require("connect-hermod")(session)

// Session setup  
app.use(session({
  secret: 'aye',
  resave: false,
  store: new HermodStore({ server: *hostname* })
  saveUninitialized: false,
  cookie: { secure: true }
}))

Where hostname has to be changed to the correct hostname available to the node.js instance to connect to the Hermod server which must be available on port 2088

Implemented functions

  • prototype.get(sid, callback)
  • prototype.set(sid, session, callback)
  • prototype.destroy(sid, callback)
0.2.0

10 months ago

0.1.12

1 year ago

0.1.13

1 year ago

0.1.14

1 year ago

0.1.11

1 year ago

0.1.10

1 year ago

0.1.9

1 year ago

0.1.8

1 year ago

0.1.7

1 year ago

0.1.6

1 year ago

0.1.5

1 year ago

0.1.4

1 year ago

0.1.3

1 year ago

0.1.2

1 year ago

0.1.1

1 year ago

0.1.0

1 year ago