Skip to content

Commit 62935e2

Browse files
chore: improve wording and update links
1 parent a3e5e31 commit 62935e2

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

content/techniques/caching.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ class HttpCacheInterceptor extends CacheInterceptor {
229229
230230
#### Different stores
231231
232-
This service takes advantage of [cache-manager](https://github.com/node-cache-manager/node-cache-manager) under the hood. The `cache-manager` package supports a wide-range of useful stores, for example, [Redis store](https://github.com/node-cache-manager/node-cache-manager-redis-yet) official package for node-cache-manager. A full list of supported stores is available [here](https://github.com/node-cache-manager/node-cache-manager#store-engines). To set up the Redis store, use the `registerAsync()` method to initialize the store, as follows:
232+
The `cache-manager` package offers a variety of useful storage options, including the [Redis store](https://www.npmjs.com/package/cache-manager-redis-yet), which is the official package for integrating Redis with cache-manager. You can find a comprehensive list of supported stores [here](https://github.com/jaredwray/cacheable/blob/main/packages/cache-manager/READMEv5.md#store-engines). To configure the Redis store, use the `registerAsync()` method to initialize it, as shown below:
233233
234234
```typescript
235235
import { redisStore } from 'cache-manager-redis-yet';
@@ -250,17 +250,17 @@ import { AppController } from './app.controller';
250250

251251
return {
252252
store: store as unknown as CacheStore,
253-
ttl: 3 * 60000, // 3 minutes (milliseconds)
253+
ttl: 3 * 60000, // 3 minutes (milliseconds)
254254
};
255-
}
256-
})
255+
},
256+
}),
257257
],
258258
controllers: [AppController],
259259
})
260260
export class AppModule {}
261261
```
262262
263-
> warning**Warning** `cache-manager-redis-yet` requires the ttl to be passed directly rather than as module options.
263+
> warning **Warning** The `cache-manager-redis-yet` package requires the `ttl` (time-to-live) setting to be specified directly rather than as part of the module options.
264264
265265
#### Async configuration
266266

0 commit comments

Comments
 (0)