1.0.9 • Published 1 month ago

@amaui/redis v1.0.9

Weekly downloads
-
License
MIT
Repository
github
Last release
1 month ago

Getting started

Add

  yarn add @amaui/redis

Add redis peer dependency.

  yarn add redis

Use

  import AmauiRedis from '@amaui/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 amauiRedis = new AmauiRedis({
    uri: Config.amqp.redis.uri
  });

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

  // Send to a queue
  await amauiRedis.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.9

1 month ago

1.0.8

2 months ago

1.0.7

2 months ago

1.0.6

2 months ago

1.0.5

4 months ago

1.0.4

4 months ago

1.0.3

4 months ago

1.0.2

4 months ago

1.0.1

4 months ago