File tree 2 files changed +8
-7
lines changed
2 files changed +8
-7
lines changed Original file line number Diff line number Diff line change 14
14
15
15
- Add ttl argument in wrap method
16
16
17
- - 5.0.1
17
+ - 5.0.1 (2022-10-09)
18
18
19
19
- Fix unexported types
20
20
21
- - 5.0.0
21
+ - 5.0.0 (2022-09-29)
22
22
23
23
- Refactor to promise and typescript (#203 ).
24
+ - Change ` ttl ` param unit to milliseconds
24
25
- Remove ` ignoreCacheErrors ` : not valid in async/await context
25
26
- Remove ` refreshThreshold ` : use lower ttl
26
27
- Remove callbackFiller
27
28
- Use function as ` FactoryStore `
28
29
- Remove multiple wrap
29
30
30
- - 4.1.0
31
+ - 4.1.0 (2022-07-07)
31
32
32
33
- Support for TTL as third arg in memory store set function (#196 ). - @ZirionNeft
33
34
34
- - 4.0.1
35
+ - 4.0.1 (2022-06-03)
35
36
36
37
- Fix TTL option bug for memory cache (#194 ). - @anchan828
37
38
38
- - 4.0.0
39
+ - 4.0.0 (2022-06-01)
39
40
40
41
- Upgrade to lru-cache 7.x (#193 ). - @orgads
41
42
- This has a breaking change in memoryCache.dump().
Original file line number Diff line number Diff line change @@ -26,10 +26,10 @@ import { caching } from 'cache-manager';
26
26
27
27
const memoryCache = await caching (' memory' , {
28
28
max: 100 ,
29
- ttl: 10 * 1000 /* miliseconds */ ,
29
+ ttl: 10 * 1000 /* milliseconds */ ,
30
30
});
31
31
32
- const ttl = 5 * 1000 ; /* miliseconds */
32
+ const ttl = 5 * 1000 ; /* milliseconds */
33
33
await memoryCache .set (' foo' , ' bar' , ttl );
34
34
35
35
console .log (await memoryCache .get (' foo' ));
You can’t perform that action at this time.
0 commit comments