Skip to content

Commit bf1d97a

Browse files
Update caching.md
1 parent 14ad0b1 commit bf1d97a

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 @@ constructor(@Inject(CACHE_MANAGER) private cacheManager: Cache) {}
3838

3939
> info **Hint** The `Cache` class is imported from the `cache-manager`, while `CACHE_MANAGER` token from the `@nestjs/common` package.
4040
41-
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, `undefined` will be returned.
41+
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.
4242

4343
```typescript
4444
const value = await this.cacheManager.get('key');

0 commit comments

Comments
 (0)