0.4.7 • Published 3 years ago
integreat-adapter-redis v0.4.7
Redis adapter for Integreat
Adapter that lets Integreat access content in a Redis database.
Getting started
Prerequisits
Requires node v14 and Integreat v0.8.
Installing and using
Install from npm:
npm install integreat-adapter-redisExample of use:
import integreat from 'integreat'
import redisAdapter from 'integreat-adapter-redis'
import defs from './config'
const resources = integreat.resources({ transporters: { redis: redisAdapter } })
const great = Integreat.create(defs, resources)
// ... and then dispatch actions as usualExample source configuration:
{
id: 'store',
adapter: 'redis',
endpoints: [{
options: {
prefix: 'store',
redis: { host: 'localhost', port: 6789 },
concurrency: 5
useTypeAsPrefix: true // Default is `true`
}
}]
}The redis endpoint options are sent as-is to redis.createClient().
See node_redis documentation for options.
Running the tests
The tests can be run with npm test.
Contributing
Please read CONTRIBUTING for details on our code of conduct, and the process for submitting pull requests.
License
This project is licensed under the ISC License - see the LICENSE file for details.
0.4.7
3 years ago
0.4.5
4 years ago
0.4.6
4 years ago
0.4.4
4 years ago
0.4.1
4 years ago
0.4.0
4 years ago
0.4.3
4 years ago
0.4.2
4 years ago
0.3.4
5 years ago
0.3.3
5 years ago
0.3.2
5 years ago
0.3.1
5 years ago
0.3.0
5 years ago
0.2.5
6 years ago
0.2.4
6 years ago
0.2.3
6 years ago
0.2.1
6 years ago
0.2.0
6 years ago
0.1.1
7 years ago
0.1.0
7 years ago