No description
Find a file
2017-01-11 16:13:41 +00:00
lib put function to parent scope 2017-01-09 13:45:56 +05:30
.gitignore Working retained messages. 2015-12-26 12:06:25 +01:00
.travis.yml added node 7 on travis 2016-12-14 14:38:42 +01:00
LICENSE Initial commit 2015-12-05 17:21:38 -08:00
package.json Bumped v2.6.1. 2017-01-10 14:26:50 +01:00
persistence.js fix missing key bug in processKeysForClient 2017-01-11 16:13:41 +00:00
README.md Added docs for Redis options 2016-05-20 16:17:33 +02:00
test.js Extraced aedes-cached-persistence. 2016-02-09 09:27:45 +00:00

aedes-persistence-redis  Build Status

Aedes persistence, backed by Redis.

See aedes-persistence for the full API, and Aedes for usage.

Install

npm i aedes aedes-persistence-redis --save

API

aedesPersistenceRedis([opts])

Creates a new instance of aedes-persistence-redis. It takes all the same options of ioredis, which is used internally to connect to Redis.

This constructor creates two connections to Redis.

Example:

aedesPersistenceRedis({
  port: 6379,          // Redis port
  host: '127.0.0.1',   // Redis host
  family: 4,           // 4 (IPv4) or 6 (IPv6)
  password: 'auth',
  db: 0
})

License

MIT