Skip to content

Commit 5d3bddd

Browse files
Merge pull request #3317 from Catalin4513/fix-caching-imports-docs
docs: fix import clarification for Cache and CACHE_MANAGER
2 parents 041e200 + 0c6ea36 commit 5d3bddd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/techniques/caching.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ To interact with the cache manager instance, inject it to your class using the `
3838
constructor(@Inject(CACHE_MANAGER) private cacheManager: Cache) {}
3939
```
4040

41-
> info **Hint** The `Cache` class is imported from the `cache-manager`, while `CACHE_MANAGER` token from the `@nestjs/cache-manager` package.
41+
> info **Hint** The `Cache` class and the `CACHE_MANAGER` token are both imported from the `@nestjs/cache-manager` package.
4242
4343
The `get` method on the `Cache` instance (from the `cache-manager` package) is used to retrieve items from the cache. If the item does not exist in the cache, `null` will be returned.
4444

0 commit comments

Comments
 (0)