Releases: awolverp/cachebox
Releases · awolverp/cachebox
Release v4.4.1
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
Release v4.2.1
Fixed
- Fix
BaseCacheImpl.__class_getitem__
cache = cachebox.Cache[int, int](0) # Before this release, you will get error but now is OK
- Fix
cached
andcachedmethod
type-hint
Release v4.2.0
Added
- New function
is_cached
is added. - New parameter
callback
is added tocached
andcachedmethod
: now you can set a callback for cached functions.
Changed
- Some docstrings are changed.
Fixed
- manual_inspect warning fixed
Release v4.1.2
Fixed
- #11 bug fixed