Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/zemd/koa-hazelcast

🐯 Hazelcast storage for koa generic session middleware
https://github.com/zemd/koa-hazelcast

hazelcast koa2 session

Last synced: about 2 months ago
JSON representation

🐯 Hazelcast storage for koa generic session middleware

Awesome Lists containing this project

README

        

# koa-hazelcast

> Hazelcast storage for koa generic session middleware based on(https://github.com/hazelcast/hazelcast-nodejs-client/pull/160)

## Installation

```bash
npm install koa-hazelcast --save
```

or

```bash
yarn add koa-hazelcast
```

## Usage

```javascript
const Koa = require("koa");
const session = require("koa-generic-session");
const convert = require("koa-convert");
const HazelcastStore = require("koa-hazelcast");

const app = new Koa();

app.use(convert(session({
store: new HazelcastStore({
ttl: 86400000 // ttl must be set in milliseconds
})
})));
```

## License

koa-hazelcast is released under the MIT license.

## Donate

[![](https://img.shields.io/badge/patreon-donate-yellow.svg)](https://www.patreon.com/red_rabbit)
[![](https://img.shields.io/badge/flattr-donate-yellow.svg)](https://flattr.com/profile/red_rabbit)