Skip to content

Commit

Permalink
docs: update ioredis.md (#2414)
Browse files Browse the repository at this point in the history
  • Loading branch information
LorianeE authored Aug 29, 2023
1 parent fc6f7c1 commit c11ff8f
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions docs/tutorials/ioredis.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ meta:

## Features

Currently, `@tsed/ioredis` allows you:
Currently, `@tsed/ioredis` allows you to:

- Configure one or more Redis database connections via the `@Configuration` configuration.
- Share redis connection with `@tsed/platform-cache`.
- Share Redis connection with `@tsed/platform-cache`.
- Support classic Redis connection and Cluster connection.
- Inject connection to another service.
- Mock connection for unit/integration test.
Expand Down Expand Up @@ -53,7 +53,7 @@ registerConnectionProvider({

::: tip Note

`registerConnectionProvider` create automatically an injectable `RedisConnection`.
`registerConnectionProvider` creates automatically an injectable `RedisConnection`.

:::

Expand All @@ -68,7 +68,7 @@ import "@tsed/ioredis";
ioredis: [
{
name: "default",
// share the redis connection with @tsed/platform-cache
// share the Redis connection with @tsed/platform-cache
cache: true

// redis options
Expand Down Expand Up @@ -117,7 +117,7 @@ import "@tsed/ioredis";
ioredis: [
{
name: "default",
// share the redis connection with @tsed/platform-cache
// share the Redis connection with @tsed/platform-cache
cache: true,
// cluster options
nodes: ["..."],
Expand Down Expand Up @@ -191,7 +191,7 @@ class MyModule {}
Ts.ED provides a utility that allows you to test a service that consumes a Redis connection.
This use relies on the awesome [ioredis-mock](https://www.npmjs.com/package/ioredis-mock) module.

Here is a class that consume a redis connection:
Here is a class that consumes a Redis connection:

```typescript
import {v4} from "uuid";
Expand Down Expand Up @@ -239,7 +239,7 @@ export class ClientModel {
}
```

And his test:
And its test:

```typescript
import {ClientRepository} from "./ClientRepository";
Expand Down

0 comments on commit c11ff8f

Please sign in to comment.