From c11ff8f550edbe21252a2ff654a33520448d0bc7 Mon Sep 17 00:00:00 2001 From: Loriane Eymann <34451946+LorianeE@users.noreply.github.com> Date: Tue, 29 Aug 2023 07:31:27 +0200 Subject: [PATCH] docs: update ioredis.md (#2414) --- docs/tutorials/ioredis.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/docs/tutorials/ioredis.md b/docs/tutorials/ioredis.md index 6bdba05b339..bf625cf7650 100644 --- a/docs/tutorials/ioredis.md +++ b/docs/tutorials/ioredis.md @@ -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. @@ -53,7 +53,7 @@ registerConnectionProvider({ ::: tip Note -`registerConnectionProvider` create automatically an injectable `RedisConnection`. +`registerConnectionProvider` creates automatically an injectable `RedisConnection`. ::: @@ -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 @@ -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: ["..."], @@ -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"; @@ -239,7 +239,7 @@ export class ClientModel { } ``` -And his test: +And its test: ```typescript import {ClientRepository} from "./ClientRepository";