Skip to content

Commit 14cdd83

Browse files
Merge pull request #3188 from gabriel-logan/docs/update-caching-method-clear
docs(caching): update documentation to reflect method name change from reset to clear
2 parents bc9d9d2 + 4434409 commit 14cdd83

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

content/techniques/caching.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,10 @@ To remove an item from the cache, use the `del` method:
7474
await this.cacheManager.del('key');
7575
```
7676

77-
To clear the entire cache, use the `reset` method:
77+
To clear the entire cache, use the `clear` method:
7878

7979
```typescript
80-
await this.cacheManager.reset();
80+
await this.cacheManager.clear();
8181
```
8282

8383
#### Auto-caching responses

0 commit comments

Comments
 (0)