Skip to content

Commit

Permalink
docs: update (#264)
Browse files Browse the repository at this point in the history
  • Loading branch information
liaoliaots committed May 26, 2022
1 parent 06dc729 commit 3955734
Show file tree
Hide file tree
Showing 9 changed files with 329 additions and 468 deletions.
50 changes: 32 additions & 18 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@
</p>

<div align="center">
<h3 align="center">@liaoliaots/nestjs-redis</h3>
<h1 align="center">Nest Redis Module</h1>

<p align="center">
Redis(ioredis) module for NestJS framework.
Redis(ioredis) module for Nest framework (node.js).
<br />
<a href="https://github.com/liaoliaots/nestjs-redis"><strong>Explore the docs »</strong></a>
<a href="#usage"><strong>Explore the docs »</strong></a>
<br />
<br />
<a href="sample">View Demo</a>
Expand All @@ -34,7 +34,8 @@
<li>
<a href="#about-the-project">About The Project</a>
<ul>
<li><a href="#built-with">Built With</a></li>
<li><a href="#features">Features</a></li>
<li><a href="#test-coverage">Test coverage</a></li>
</ul>
</li>
<li>
Expand All @@ -48,20 +49,21 @@
<li><a href="#roadmap">Roadmap</a></li>
<li><a href="#contributing">Contributing</a></li>
<li><a href="#license">License</a></li>
<li><a href="#contact">Contact</a></li>
<li><a href="#acknowledgments">Acknowledgments</a></li>
<li><a href="docs/latest/dependency-graph.svg">Package dependency overview</a></li>
</ol>
</details>

## About The Project

### Features

- **Both redis & cluster are supported**: You can also specify multiple clients.
- **Health**: Checks health of redis & cluster server.
- **Both redis & cluster are supported**: You can also specify multiple instances.
- **Health**: Checks health of **redis & cluster** server.
- **Rigorously tested**: With 120+ tests and 100% code coverage.
- **Decorators**: Injects redis/cluster client via `@InjectRedis()`, `@InjectCluster()`.
- **Services**: Retrieves redis/cluster client via `RedisService`, `ClusterService`.
- **Decorators**: Injects **redis & cluster** clients via `@InjectRedis()`, `@InjectCluster()`.
- **Services**: Retrieves **redis & cluster** clients via `RedisService`, `ClusterService`.
- **Testing**: Generates an injection token via `getRedisToken`, `getClusterToken`.

### Test coverage

Expand All @@ -73,7 +75,7 @@

### Prerequisites

This lib requires **Node.js >=12.22.0**, **ioredis ^5.0.0**, **NestJS 7.x** or **8.x**.
This lib requires **Node.js >=12.22.0**, **NestJS ^7** or **^8**, **ioredis ^5**.

- If you depend on ioredis 4, please use [version 7](https://github.com/liaoliaots/nestjs-redis/tree/v7.0.0) of the lib.

Expand All @@ -89,19 +91,31 @@ yarn add @liaoliaots/nestjs-redis ioredis
## Usage

- [Redis](docs/latest/redis.md)
- [Non-global](docs/latest/redis.md#non-global)
- [Usage](docs/latest/redis.md)
- [Configuration](docs/latest/redis.md#configuration)
- [Testing](docs/latest/redis.md#testing)
- [Non-Global](docs/latest/redis.md#non-global)
- [Unix domain socket](docs/latest/redis.md#unix-domain-socket)
- [Cluster](docs/latest/cluster.md)
- [Non-global](docs/latest/cluster.md#non-global)
- [Usage](docs/latest/cluster.md)
- [Configuration](docs/latest/cluster.md#configuration)
- [Testing](docs/latest/cluster.md#testing)
- [Non-Global](docs/latest/cluster.md#non-global)
- [Health Checks](docs/latest/health-checks.md)
- [Usage](docs/latest/health-checks.md#usage)
- [Options](docs/latest/health-checks.md#options)
- [Usage](docs/latest/health-checks.md)
- [Settings](docs/latest/health-checks.md#settings)
- [Examples](docs/latest/examples.md)
- [Redis Sentinel](docs/latest/examples.md#sentinel)
- [Multiple Cluster Clients](docs/latest/examples.md#multiple-clients)
- [High availability with Redis Sentinel](docs/latest/examples.md#sentinel)

### Legacy

- version 5, [click here](docs/v5)
- version 6, [click here](docs/v6)
- version 7, [click here](docs/v7)

## Roadmap

- [ ] Compatible with **NestJS** **^9**
- [ ] Compatible with **NestJS ^9**

## Contributing

Expand All @@ -122,7 +136,7 @@ Distributed under the MIT License. See `LICENSE` for more information.

## Acknowledgments

- [Client ioredis](https://github.com/luin/ioredis)
- [Full-featured Redis client - ioredis](https://github.com/luin/ioredis)
- [Redis documentation](https://redis.io/)
- [Redis docker image](https://hub.docker.com/_/redis)

Expand Down
118 changes: 0 additions & 118 deletions README_1.md

This file was deleted.

2 changes: 0 additions & 2 deletions docs/latest/cluster.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# Cluster

## Usage

**1**, we need to import the `ClusterModule` into our root module:
Expand Down
Loading

0 comments on commit 3955734

Please sign in to comment.