Skip to content

Commit 4434409

Browse files
committed
docs(caching): update documentation to reflect method name change from reset to clear
1 parent bc9d9d2 commit 4434409

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)