0.4.7 • Published 2 years ago

integreat-adapter-redis v0.4.7

Weekly downloads
6
License
ISC
Repository
github
Last release
2 years ago

Redis adapter for Integreat

Adapter that lets Integreat access content in a Redis database.

npm Version Build Status Coverage Status Dependencies Status Maintainability

Getting started

Prerequisits

Requires node v14 and Integreat v0.8.

Installing and using

Install from npm:

npm install integreat-adapter-redis

Example 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 usual

Example 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

2 years ago

0.4.5

3 years ago

0.4.6

3 years ago

0.4.4

3 years ago

0.4.1

3 years ago

0.4.0

3 years ago

0.4.3

3 years ago

0.4.2

3 years ago

0.3.4

4 years ago

0.3.3

4 years ago

0.3.2

4 years ago

0.3.1

4 years ago

0.3.0

4 years ago

0.2.5

4 years ago

0.2.4

4 years ago

0.2.3

5 years ago

0.2.1

5 years ago

0.2.0

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago