# redis-express-session

> Provides a configurable way of storing server-to-server sessions in Redis through the use of Express.js middleware.

Latest version **1.0.0** (published 2018-10-16) · ISC license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install redis-express-session
pnpm add redis-express-session
yarn add redis-express-session
bun add redis-express-session
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2018-10-16 |
| First published | 2018-10-16 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 8 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| Author | Arman van Lieshout |
| Maintainers | cx-company |

## Links

- npm: https://www.npmjs.com/package/redis-express-session
- Repository: https://digitalcx.visualstudio.com/Packages-FrontEnd/_git/dcx.session
- npm.io page: https://npm.io/package/redis-express-session

## Dependencies (2)

- [redis](https://npm.io/package/redis.md) ^2.8.0
- [bluebird](https://npm.io/package/bluebird.md) ^3.5.1

## Recent versions

- 1.0.0 (latest) — 2018-10-16

## README

# Redis Express Session

This library offers a way of keeping a users session in a server-server environment, e.g. a webhooks server.

## Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

### Installing

```
npm i redis-express-session
```

### API

The API exposes a single function that accepts:
|Property name   	|Type   	| Required |Description   	|
|---	|---	|---	|---|
|Configuration   	|Object |No   	|An object that holds the configuration values   	|
|Configuration.host   	|String   	|No   	|Redis server hostname   	|
|Configuration.port   	|Integer   	|No   	|Redis server port   	|
|Configuration.password   	|String   	|No   	|Redis server password   	|
|Configuration.timeoutInSeconds   	|String   	|No   	|Redis session time to live (TTL)   	|
|Configuration.tls   	|Object   	|No   	|A configuration object that will take precedence over any other value present within this configuration object. When specified the library will attempt to initiate a secure connection over TLS with the Redis server specified in its contents   	|
|Configuration.host   	|String   	|No   	|Redis server hostname   	|
|Configuration.password   	|String   	|No   	|Redis server password   	|
|Configuration.port   	|Integer   	|No   	|Redis server port   	|

After configuring the instance a higher order function is returned that accepts a single string value as its first and only parameter. This function returns another function that adheres to the standard Express middleware format and can be hooked up to any Express server as middleware.

## Built With

* [Redis](https://github.com/NodeRedis/node_redis) - Node.js client for Redis
* [Bluebird](http://bluebirdjs.com/docs/getting-started.html) - JavaScript Promise library

## Versioning

We use [SemVer](http://semver.org/) for versioning. For the versions available, see the [tags on this repository](https://github.com/your/project/tags). 

## License

This project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details

## Acknowledgments

* This project is heavily inspired by [Express session](https://github.com/expressjs/session)

---
_Source: https://npm.io/package/redis-express-session · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
