0.1.0 • Published 3 years ago

@lucets/redis-registry v0.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

@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.