From c6667fcfd8781f801d0faa17ad1d18fb1a79fbf2 Mon Sep 17 00:00:00 2001 From: Harminder virk Date: Thu, 27 Jun 2019 00:11:09 +0530 Subject: [PATCH] docs(readme): update readme --- README.md | 54 +++++++++++++++++++++++++++++++----------------------- 1 file changed, 31 insertions(+), 23 deletions(-) diff --git a/README.md b/README.md index 2033a49..95385bf 100644 --- a/README.md +++ b/README.md @@ -1,39 +1,47 @@ - - -## Table of contents +
+ +
-- [@adonisjs/redis](#adonisjsredis) - - [Change log](#change-log) - - [Contributing](#contributing) - - [Authors & License](#authors--license) +# Adonis Redis +> Redis provider for AdonisJs with support for multiple redis connections, cluster, pub/sub and much more. - - -# @adonisjs/redis +[![circleci-image]][circleci-url] [![npm-image]][npm-url] ![][typescript-image] [![license-image]][license-url] -[![circleci-image]][circleci-url] -[![npm-image]][npm-url] -![](https://img.shields.io/badge/Typescript-294E80.svg?style=for-the-badge&logo=typescript) +This is a first party addon to add support for using Redis server with AdonisJs. In a nutshell: -## Change log +1. It allows having multiple redis connections by defining them inside `start/redis(.js|.ts)` file. +2. Eases the API for pub/sub. +3. Support for cluster and sentinel. -The change log can be found in the [CHANGELOG.md](CHANGELOG.md) file. + + +## Table of contents -## Contributing +- [Testing](#testing) +- [Maintainers](#maintainers) -Everyone is welcome to contribute. Please go through the following guides, before getting started. + -1. [Contributing](https://adonisjs.com/contributing) -2. [Code of conduct](https://adonisjs.com/code-of-conduct) +## Testing +The tests are executed inside a Docker container, since setting up a redis cluster can be painful. Just make sure to have the Docker client running on your OS. +Run the following commands to build and run tests. -## Authors & License -[thetutlage](https://github.com/thetutlage) and [contributors](https://github.com/adonisjs/adonis-redis/graphs/contributors). +```sh +docker-compose build +docker-compose run --rm tests +``` -MIT License, see the included [MIT](LICENSE.md) file. +## Maintainers +[Harminder virk](https://github.com/thetutlage) -[circleci-image]: https://img.shields.io/circleci/project/github/adonisjs/adonis-redis/master.svg?style=for-the-badge&logo=circleci +[circleci-image]: https://img.shields.io/circleci/project/github/adonisjs/adonis-redis/master.svg?style=for-the-badge&logo=appveyor [circleci-url]: https://circleci.com/gh/adonisjs/adonis-redis "circleci" [npm-image]: https://img.shields.io/npm/v/@adonisjs/redis.svg?style=for-the-badge&logo=npm [npm-url]: https://npmjs.org/package/@adonisjs/redis "npm" + +[typescript-image]: https://img.shields.io/badge/Typescript-294E80.svg?style=for-the-badge&logo=typescript + +[license-url]: LICENSE.md +[license-image]: https://img.shields.io/aur/license/pac.svg?style=for-the-badge