Releases: awolverp/cachebox
Release v4.5.1
A small fix for version v4.5.0.
Changes
In previous version, the cached
and cachedmethod
functions caught a KeyError
from the callback function, which led to the cached function being called again.
Thanks to
- @AlePiccin for the issue #20
Release v4.5.0
cached
and cachedmethod
improved
Now cachebox uses threading.Lock
for sync functions, and asyncio.Lock
for async functions to avoid cache stampede
. These changes fix #15 and #20 issues.
Thanks to
- @Benoss for the report
- @AlePiccin for the report and solution.
Release v4.4.2
No important changes were made to the library.
Updated
Pyo3
dependency updated and Box
layout removed from Rust code.
Release v4.4.1
No changes were made to the library. Only dependencies updated, such as PyO3 that has a soundness fix.
Release v4.4.0
Added
- New
copy_level
parameter added tocachedmethod
andcached
.
Deprecated
- The
always_copy
parameter marked as deprecated.
Changed
- The
cached
andcachedmethod
structures changed due to some issues.
Removed
typing_extensions
dependency removed.info
parameter removed fromcachedmethod
andcached
.
Release v4.3.2
Added
New dependency is added: typing_extensions
.
We used this library to use ParamSpec
that makes cachebox type-hint better, and easier than ever for you.
Changed
the behaviour of the iteratores changed. Previously, iterators used capacity and length of the cache to know "is cache have changes?". But now, each cache has a number called "state" that increments with each change; iterators now uses this "state" number.
Release v4.3.1
Changed
__str__
changed to__repr__
- Free-threading is supported now
- Dependencies updated
Release v4.3.0
Added
- Add
always_copy
parameter tocached
andcachedmethod
decorators; This is useful when function returns mutable results, such as dict, list, or set, ....
Release v4.2.3
Release v4.2.2 was missing some .whl
files for linux. Thanks @ecarrara for the fix, Thanks @ksquarekumar for the report.
Fixed
- Fix issue #13
Release v4.2.2
In this release we support Python 3.13
Fixed
TTLCache.__str__
fixed