0.2.0 • Published 2 years ago

connect-hermod v0.2.0

Weekly downloads
-
License
AGPL-3.0
Repository
-
Last release
2 years 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

2 years ago

0.1.12

2 years ago

0.1.13

2 years ago

0.1.14

2 years ago

0.1.11

2 years ago

0.1.10

2 years ago

0.1.9

2 years ago

0.1.8

2 years ago

0.1.7

2 years ago

0.1.6

2 years ago

0.1.5

2 years ago

0.1.4

2 years ago

0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago