Skip to content

Commit ca02913

Browse files
Fix comment in ttl example code (#1122)
1 parent e278b64 commit ca02913

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/cache-manager/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ await cache.mget(['key-1', 'key-2', 'key-3'])
324324
Gets the expiration time of a key in milliseconds. Returns a null if not found or expired.
325325

326326
```ts
327-
await cache.set('key', 'value', 1000); // expires after 5 seconds
327+
await cache.set('key', 'value', 1000); // expires after 1 second
328328

329329
await cache.ttl('key'); // => the expiration time in milliseconds
330330

0 commit comments

Comments
 (0)