Skip to content

Commit 23662c9

Browse files
committed
docs(changelog) add the 2.5.0 changes
1 parent 8096940 commit 23662c9

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

CHANGELOG.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Table of Contents
22

3+
- [2.5.0](#2.5.0)
34
- [2.4.1](#2.4.1)
45
- [2.4.0](#2.4.0)
56
- [2.3.0](#2.3.0)
@@ -12,6 +13,32 @@
1213
- [1.0.1](#1.0.1)
1314
- [1.0.0](#1.0.0)
1415

16+
## [2.5.0]
17+
18+
> Released on: 2020/11/18
19+
20+
#### Added
21+
22+
- `get()` callback functions are now optional. Without a callback, `get()` now
23+
still performs on-cpu L1/L2 lookups (no yielding). This allows implementing
24+
new cache lookup patterns guaranteed to be on-cpu for a more constant,
25+
smoother latency tail end (e.g. values are refreshed in background timers with
26+
`set()`).
27+
Thanks Hamish Forbes and Corina Purcarea for proposing this feature and
28+
participating in its development!
29+
[#96](https://github.com/thibaultcha/lua-resty-mlcache/pull/96)
30+
31+
#### Fixed
32+
33+
- Improve `update()` robustness to worker crashes. Now, the library behind
34+
`cache:update()` is much more robust to re-spawned workers when initialized in
35+
the `init_by_lua` phase.
36+
[#97](https://github.com/thibaultcha/lua-resty-mlcache/pull/97)
37+
- Document the `peek()` method `stale` argument which was not mentioned, as well
38+
as the possibility of negative TTL return values for expired items.
39+
40+
[Back to TOC](#table-of-contents)
41+
1542
## [2.4.1]
1643

1744
> Released on: 2020/01/17
@@ -215,6 +242,7 @@ Initial release.
215242

216243
[Back to TOC](#table-of-contents)
217244

245+
[2.5.0]: https://github.com/thibaultcha/lua-resty-mlcache/compare/2.4.1...2.5.0
218246
[2.4.1]: https://github.com/thibaultcha/lua-resty-mlcache/compare/2.4.0...2.4.1
219247
[2.4.0]: https://github.com/thibaultcha/lua-resty-mlcache/compare/2.3.0...2.4.0
220248
[2.3.0]: https://github.com/thibaultcha/lua-resty-mlcache/compare/2.2.1...2.3.0

0 commit comments

Comments
 (0)