From 23662c90af3fadcd4604ae6dfd476cc2abf33764 Mon Sep 17 00:00:00 2001 From: Thibault Charbonnier Date: Wed, 18 Nov 2020 15:53:11 -0800 Subject: [PATCH] docs(changelog) add the 2.5.0 changes --- CHANGELOG.md | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6dc22fd54..4e9838efe 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,6 @@ # Table of Contents +- [2.5.0](#2.5.0) - [2.4.1](#2.4.1) - [2.4.0](#2.4.0) - [2.3.0](#2.3.0) @@ -12,6 +13,32 @@ - [1.0.1](#1.0.1) - [1.0.0](#1.0.0) +## [2.5.0] + +> Released on: 2020/11/18 + +#### Added + +- `get()` callback functions are now optional. Without a callback, `get()` now + still performs on-cpu L1/L2 lookups (no yielding). This allows implementing + new cache lookup patterns guaranteed to be on-cpu for a more constant, + smoother latency tail end (e.g. values are refreshed in background timers with + `set()`). + Thanks Hamish Forbes and Corina Purcarea for proposing this feature and + participating in its development! + [#96](https://github.com/thibaultcha/lua-resty-mlcache/pull/96) + +#### Fixed + +- Improve `update()` robustness to worker crashes. Now, the library behind + `cache:update()` is much more robust to re-spawned workers when initialized in + the `init_by_lua` phase. + [#97](https://github.com/thibaultcha/lua-resty-mlcache/pull/97) +- Document the `peek()` method `stale` argument which was not mentioned, as well + as the possibility of negative TTL return values for expired items. + +[Back to TOC](#table-of-contents) + ## [2.4.1] > Released on: 2020/01/17 @@ -215,6 +242,7 @@ Initial release. [Back to TOC](#table-of-contents) +[2.5.0]: https://github.com/thibaultcha/lua-resty-mlcache/compare/2.4.1...2.5.0 [2.4.1]: https://github.com/thibaultcha/lua-resty-mlcache/compare/2.4.0...2.4.1 [2.4.0]: https://github.com/thibaultcha/lua-resty-mlcache/compare/2.3.0...2.4.0 [2.3.0]: https://github.com/thibaultcha/lua-resty-mlcache/compare/2.2.1...2.3.0