Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/zemd/koa-hazelcast
- Owner: zemd
- License: mit
- Archived: true
- Created: 2016-12-29T22:13:58.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-03-04T09:48:07.000Z (over 6 years ago)
- Last Synced: 2024-09-26T16:41:13.608Z (about 2 months ago)
- Topics: hazelcast, koa2, session
- Language: JavaScript
- Homepage:
- Size: 6.84 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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)