Skip to content

Commit 9be9f25

Browse files
authored
Make it clear that the cache TTL is in seconds.
I was a bit confused when I first read these docs what units the cache TTL is in. I expected milliseconds, and had to read the cache-manager docs to confirm. Reference: https://www.npmjs.com/package/cache-manager
1 parent 5f0948a commit 9be9f25

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)