File tree Expand file tree Collapse file tree 2 files changed +13
-6
lines changed
Expand file tree Collapse file tree 2 files changed +13
-6
lines changed Original file line number Diff line number Diff line change @@ -6,11 +6,18 @@ v6.0.0 (UNRELEASED)
66- Remove ``MRUCache `` and the ``@func.mru_cache `` decorator (breaking
77 change).
88
9- - Improve the way ``cachetools.func `` decorators deal with `cache
10- stampede <https://en.wikipedia.org/wiki/Cache_stampede> `_ issues in
11- massively parallel environments. Note that this comes at a small
12- (your mileage may vary) performance penalty, and therefore is not
13- supported by the ``@cached `` and ``@cachedmethod `` decorators yet.
9+ - Add an optional ``condition `` parameter to the ``@cached `` and
10+ ``@cachedmethod `` decorators, which, when used with a
11+ ``threading.Condition `` instance, should improve `cache stampede
12+ <https://en.wikipedia.org/wiki/Cache_stampede> `_ issues in massively
13+ parallel environments. Note that this will incur some performance
14+ penalty, and therefore has to be enabled explicitly.
15+
16+ - Convert the ``cachetools.func `` decorators to use a
17+ ``threading.Condition `` instance to deal with `cache stampede
18+ <https://en.wikipedia.org/wiki/Cache_stampede> `_ issues. Note that
19+ this `may ` result in a noticable performance degradation, depending
20+ on your actual use case.
1421
1522- Update CI environment.
1623
Original file line number Diff line number Diff line change 1212 "cachedmethod" ,
1313)
1414
15- __version__ = "6.0.0b1 "
15+ __version__ = "6.0.0b2 "
1616
1717import collections
1818import collections .abc
You can’t perform that action at this time.
0 commit comments