Skip to content

Commit 675a8ad

Browse files
salquier-appvizerzzau13
authored andcommitted
Docs : Add ttl unit change in CHANGELOG and fix typo in README
1 parent 97df74c commit 675a8ad

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

CHANGELOG.md

+6-5
Original file line numberDiff line numberDiff line change
@@ -14,28 +14,29 @@
1414

1515
- Add ttl argument in wrap method
1616

17-
- 5.0.1
17+
- 5.0.1 (2022-10-09)
1818

1919
- Fix unexported types
2020

21-
- 5.0.0
21+
- 5.0.0 (2022-09-29)
2222

2323
- Refactor to promise and typescript (#203).
24+
- Change `ttl` param unit to milliseconds
2425
- Remove `ignoreCacheErrors`: not valid in async/await context
2526
- Remove `refreshThreshold`: use lower ttl
2627
- Remove callbackFiller
2728
- Use function as `FactoryStore`
2829
- Remove multiple wrap
2930

30-
- 4.1.0
31+
- 4.1.0 (2022-07-07)
3132

3233
- Support for TTL as third arg in memory store set function (#196). - @ZirionNeft
3334

34-
- 4.0.1
35+
- 4.0.1 (2022-06-03)
3536

3637
- Fix TTL option bug for memory cache (#194). - @anchan828
3738

38-
- 4.0.0
39+
- 4.0.0 (2022-06-01)
3940

4041
- Upgrade to lru-cache 7.x (#193). - @orgads
4142
- This has a breaking change in memoryCache.dump().

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ import { caching } from 'cache-manager';
2626

2727
const memoryCache = await caching('memory', {
2828
max: 100,
29-
ttl: 10 * 1000 /*miliseconds*/,
29+
ttl: 10 * 1000 /*milliseconds*/,
3030
});
3131

32-
const ttl = 5 * 1000; /*miliseconds*/
32+
const ttl = 5 * 1000; /*milliseconds*/
3333
await memoryCache.set('foo', 'bar', ttl);
3434

3535
console.log(await memoryCache.get('foo'));

0 commit comments

Comments
 (0)