Skip to content

Commit

Permalink
Merge pull request #3188 from gabriel-logan/docs/update-caching-metho…
Browse files Browse the repository at this point in the history
…d-clear

docs(caching): update documentation to reflect method name change from reset to clear
  • Loading branch information
kamilmysliwiec authored Jan 28, 2025
2 parents bc9d9d2 + 4434409 commit 14cdd83
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions content/techniques/caching.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,10 @@ To remove an item from the cache, use the `del` method:
await this.cacheManager.del('key');
```

To clear the entire cache, use the `reset` method:
To clear the entire cache, use the `clear` method:

```typescript
await this.cacheManager.reset();
await this.cacheManager.clear();
```

#### Auto-caching responses
Expand Down

0 comments on commit 14cdd83

Please sign in to comment.