Skip to content

Commit 52cbdcd

Browse files
Merge pull request #1935 from mistakenot/patch-1
Make it clear that the cache TTL is in seconds.
2 parents 485a114 + 9be9f25 commit 52cbdcd

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
@@ -52,7 +52,7 @@ await this.cacheManager.set('key', 'value');
5252

5353
The default expiration time of the cache is 5 seconds.
5454

55-
You can manually specify a TTL (expiration time) for this specific key, as follows:
55+
You can manually specify a TTL (expiration time in seconds) for this specific key, as follows:
5656

5757
```typescript
5858
await this.cacheManager.set('key', 'value', { ttl: 1000 });

0 commit comments

Comments
 (0)