1.0.5 • Published 10 months ago

@onesy/redis v1.0.5

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

Getting started

Add

  yarn add @onesy/redis

Add redis peer dependency.

  yarn add redis

Use

  import OnesyRedis from '@onesy/redis';
  // Make if you wanna a config file and
  // inside of it add all the process.env related props
  import Config from './config';

  // Make a new amqp instance
  const onesyRedis = new OnesyRedis({
    uri: Config.amqp.redis.uri
  });

  // Await for a client connection
  await onesyRedis.client;

  // Send to a queue
  await onesyRedis.publish('a', 'a'); 

Dev

Install

  yarn

Test

  yarn test

One time local setup

Install docker and docker-compose

Make docker containers

  yarn docker

Prod

Build

  yarn build
1.0.5

10 months ago

1.0.4

10 months ago

1.0.3

10 months ago

1.0.2

10 months ago

1.0.1

10 months ago

1.0.0

1 year ago