@lucets/redis-registry

0.1.0 • Public • Published

@lucets/redis-registry

Redis registry for @lucets/registry. Allows a decentralized application to send messages to peers on remote instances using Redis Streams.

Install

Install through npm:

npm i @lucets/redis-registry

Example

See @lucets/registry for more information.

import IORedis from 'ioredis'
import RedisRegistry from '@lucets/redis-registry'

const connection = new IORedis()
const registry = new RedisRegistry({ connection })

// Example: create a new client
await registry.create('id', {
  url: '/url'
})

License

Copyright 2021 Michiel van der Velde.

This software is licensed under the MIT License.

/@lucets/redis-registry/

    Package Sidebar

    Install

    npm i @lucets/redis-registry

    Weekly Downloads

    1

    Version

    0.1.0

    License

    MIT

    Unpacked Size

    11.5 kB

    Total Files

    5

    Last publish

    Collaborators

    • michielvdvelde