@amaui/redis
v1.0.9
Published
Redis
Maintainers
Readme
Getting started
Add
yarn add @amaui/redisAdd redis peer dependency.
yarn add redisUse
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
yarnTest
yarn testOne time local setup
Install docker and docker-compose
- https://docs.docker.com/get-docker
- https://docs.docker.com/compose/install
Make docker containers
yarn dockerProd
Build
yarn build