Skip to content

Commit 0e6cb53

Browse files
Merge pull request #1926 from bodolawale/patch-1
Update caching.md
2 parents 4719ce8 + 5e45f96 commit 0e6cb53

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
@@ -41,7 +41,7 @@ constructor(@Inject(CACHE_MANAGER) private cacheManager: Cache) {}
4141
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, an exception will be thrown.
4242

4343
```typescript
44-
const value = this.cacheManager.get('key');
44+
const value = await this.cacheManager.get('key');
4545
```
4646

4747
To add an item to the cache, use the `set` method:

0 commit comments

Comments
 (0)